wined3d: Use a bitmask to store which bool and int constants are set. Note that constants_set was never actually NULL for shader_glsl_load_constantsB() and shader_glsl_load_constantsI().
diff --git a/dlls/wined3d/wined3d_private.h b/dlls/wined3d/wined3d_private.h index dfbe6c7..0ad75c9 100644 --- a/dlls/wined3d/wined3d_private.h +++ b/dlls/wined3d/wined3d_private.h
@@ -1662,12 +1662,12 @@ BOOL clipplane[MAX_CLIPPLANES]; BOOL vertexDecl; BOOL pixelShader; - BOOL pixelShaderConstantsB[MAX_CONST_B]; - BOOL pixelShaderConstantsI[MAX_CONST_I]; + WORD pixelShaderConstantsB; + WORD pixelShaderConstantsI; BOOL *pixelShaderConstantsF; BOOL vertexShader; - BOOL vertexShaderConstantsB[MAX_CONST_B]; - BOOL vertexShaderConstantsI[MAX_CONST_I]; + WORD vertexShaderConstantsB; + WORD vertexShaderConstantsI; BOOL *vertexShaderConstantsF; BOOL scissorRect; } SAVEDSTATES;