wined3d: baseShader.functionLength should be 0 when a NULL pFunction is passed.

Henri Verbeet hverbeet at codeweavers.com
Thu Dec 11 04:52:37 CST 2008


---
 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;
     }
 
-- 
1.5.6.4



--------------030502080003030004030701--



More information about the wine-patches mailing list