Module: wine
Branch: master
Commit: 15d497cb26f26c18786c77cdbed1b9145f7e8daa
URL: http://source.winehq.org/git/wine.git/?a=commit;h=15d497cb26f26c18786c77cdb…
Author: Henri Verbeet <hverbeet(a)codeweavers.com>
Date: Thu Dec 11 11:52:37 2008 +0100
wined3d: baseShader.functionLength should be 0 when a NULL pFunction is passed.
---
dlls/wined3d/baseshader.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/wined3d/baseshader.c b/dlls/wined3d/baseshader.c
index 9ab1d96..23dd8f1 100644
--- a/dlls/wined3d/baseshader.c
+++ b/dlls/wined3d/baseshader.c
@@ -997,7 +997,7 @@ void shader_trace_init(
if (!pFunction)
{
WARN("Got a NULL pFunction, returning.\n");
- This->baseShader.functionLength = 1; /* no Function defined use fixed function vertex processing */
+ This->baseShader.functionLength = 0; /* no Function defined use fixed function vertex processing */
return;
}