wined3d: baseShader.functionLength should be 0 when a NULL pFunction is passed.
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 @@
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;
}