]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
disable some slow code (clearing unused parameters in an array)
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 6 Oct 2009 10:14:39 +0000 (10:14 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 6 Oct 2009 10:14:39 +0000 (10:14 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9313 d7cf8633-e32d-0410-b094-e92efae38249

model_shared.c

index 5493b06ae19df246c1c7cd336d2d62d246fb3bf2..4893aea650c5cc0afa45c059ae51037cde8e8370 100644 (file)
@@ -1464,8 +1464,8 @@ void Mod_LoadQ3Shaders(void)
                                                        if (!COM_ParseToken_QuakeC(&text, true))
                                                                break;
                                                }
-                                               for (j = numparameters;j < TEXTURE_MAXFRAMES + 4;j++)
-                                                       parameter[j][0] = 0;
+                                               //for (j = numparameters;j < TEXTURE_MAXFRAMES + 4;j++)
+                                               //      parameter[j][0] = 0;
                                                if (developer.integer >= 100)
                                                {
                                                        Con_Printf("%s %i: ", shader.name, shader.numlayers - 1);
@@ -1683,8 +1683,8 @@ void Mod_LoadQ3Shaders(void)
                                        if (!COM_ParseToken_QuakeC(&text, true))
                                                break;
                                }
-                               for (j = numparameters;j < TEXTURE_MAXFRAMES + 4;j++)
-                                       parameter[j][0] = 0;
+                               //for (j = numparameters;j < TEXTURE_MAXFRAMES + 4;j++)
+                               //      parameter[j][0] = 0;
                                if (fileindex == 0 && !strcasecmp(com_token, "}"))
                                        break;
                                if (developer.integer >= 100)