]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix r_glsl_dumpshader
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 12 Jan 2008 16:41:34 +0000 (16:41 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 12 Jan 2008 16:41:34 +0000 (16:41 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7952 d7cf8633-e32d-0410-b094-e92efae38249

gl_rmain.c

index d80a304df2de2045192befbcaff3818a8cc35c70..9a4b48ae176a1455356be383f0dfd5dee61448ce 100644 (file)
@@ -1281,7 +1281,7 @@ void R_GLSL_DumpShader_f(void)
        FS_Print(file, "// #define VERTEX_SHADER\n// #define GEOMETRY_SHADER\n// #define FRAGMENT_SHADER\n");
        for (i = 0;i < SHADERMODE_COUNT;i++)
                FS_Printf(file, "// %s", shadermodeinfo[i].pretext);
-       for (i = 0;i < SHADERPERMUTATION_LIMIT;i++)
+       for (i = 0;i < SHADERPERMUTATION_COUNT;i++)
                FS_Printf(file, "// %s", shaderpermutationinfo[i].pretext);
        FS_Print(file, "\n");
        FS_Print(file, builtinshaderstring);