]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - gl_textures.c
remove two debug prints
[xonotic/darkplaces.git] / gl_textures.c
index 0178133b2d5087972b3491872a3a13a1b14519f6..e5d35a9ac4f264221550d8e6f9a48632c1fd57bc 100644 (file)
@@ -308,7 +308,7 @@ void R_FreeTexture(rtexture_t *rt)
        else
                Host_Error("R_FreeTexture: texture \"%s\" not linked in pool", glt->identifier);
 
-       if (glt->texnum > 0)
+       if (!(glt->flags & GLTEXF_UPLOAD))
        {
                CHECKGLERROR
                qglDeleteTextures(1, (GLuint *)&glt->texnum);CHECKGLERROR