]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
don't spew shaders to console on load unless developer is 2 or higher
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 16 Oct 2004 21:33:04 +0000 (21:33 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 16 Oct 2004 21:33:04 +0000 (21:33 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4651 d7cf8633-e32d-0410-b094-e92efae38249

model_brush.c

index 5f432355234b0597e1da0e25f4698727c24d4908..847abf3891387bef48537a7e3492941a39f9df5d 100644 (file)
@@ -3663,10 +3663,13 @@ static void Mod_Q3BSP_LoadTextures(lump_t *l)
                                                                                if (!COM_ParseToken(&text, true))
                                                                                        break;
                                                                        }
-                                                                       Con_Printf("%s %i: ", shadername, passnumber);
-                                                                       for (j = 0;j < numparameters;j++)
-                                                                               Con_Printf(" %s", parameter[j]);
-                                                                       Con_Print("\n");
+                                                                       if (developer.integer >= 2)
+                                                                       {
+                                                                               Con_Printf("%s %i: ", shadername, passnumber);
+                                                                               for (j = 0;j < numparameters;j++)
+                                                                                       Con_Printf(" %s", parameter[j]);
+                                                                               Con_Print("\n");
+                                                                       }
                                                                        if (passnumber == 0 && numparameters >= 1)
                                                                        {
                                                                                if (!strcasecmp(parameter[0], "blendfunc"))
@@ -3704,10 +3707,13 @@ static void Mod_Q3BSP_LoadTextures(lump_t *l)
                                                        }
                                                        if (i == 0 && !strcasecmp(com_token, "}"))
                                                                break;
-                                                       Con_Printf("%s: ", shadername);
-                                                       for (j = 0;j < numparameters;j++)
-                                                               Con_Printf(" %s", parameter[j]);
-                                                       Con_Print("\n");
+                                                       if (developer.integer >= 2)
+                                                       {
+                                                               Con_Printf("%s: ", shadername);
+                                                               for (j = 0;j < numparameters;j++)
+                                                                       Con_Printf(" %s", parameter[j]);
+                                                               Con_Print("\n");
+                                                       }
                                                        if (numparameters < 1)
                                                                continue;
                                                        if (!strcasecmp(parameter[0], "surfaceparm") && numparameters >= 2)