H. Verbeet : wined3d: Enable color fixups for vertex shaders.
Alexandre Julliard
julliard at wine.codeweavers.com
Thu Mar 9 06:29:00 CST 2006
Module: wine
Branch: refs/heads/master
Commit: 008c6a00b97c7687b903fa4f22325642d4a6ab45
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=008c6a00b97c7687b903fa4f22325642d4a6ab45
Author: H. Verbeet <hverbeet at 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);
More information about the wine-cvs
mailing list