Module: wine Branch: refs/heads/master Commit: 008c6a00b97c7687b903fa4f22325642d4a6ab45 URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=008c6a00b97c7687b903fa4f...
Author: H. Verbeet hverbeet@gmail.com Date: Wed Mar 8 23:51:33 2006 +0000
wined3d: Enable color fixups for vertex shaders.
---
dlls/wined3d/vertexshader.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/dlls/wined3d/vertexshader.c b/dlls/wined3d/vertexshader.c index 12960ae..000a1aa 100644 --- a/dlls/wined3d/vertexshader.c +++ b/dlls/wined3d/vertexshader.c @@ -969,6 +969,10 @@ inline static void vshader_program_add_p strcat(hwLine, tmpReg); break; case D3DSPR_INPUT: + if (reg == This->arrayUsageMap[WINED3DSHADERDECLUSAGE_DIFFUSE] + || reg == This->arrayUsageMap[WINED3DSHADERDECLUSAGE_SPECULAR]) { + is_color = TRUE; + } /* if the attributes come in as named dcl's then use a named vertex (called namedVertexN) */ if (This->namedArrays) { sprintf(tmpReg, "namedVertex%lu", reg);