wined3d: baseShader.functionLength should be 0 when a NULL pFunction is passed.
authorHenri Verbeet <hverbeet@codeweavers.com>
Thu, 11 Dec 2008 10:52:37 +0000 (11:52 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Thu, 11 Dec 2008 11:14:36 +0000 (12:14 +0100)
dlls/wined3d/baseshader.c

index 9ab1d962cc5f0ded245c3fe59d37c925a1b5d536..23dd8f1df681890fca6e960cffc4a1157577a233 100644 (file)
@@ -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;
     }