]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - gl_textures.c
fixed bug with toggling r_shadow_bouncegrid where the texture binding
[xonotic/darkplaces.git] / gl_textures.c
index 0f08b5f9ea3df9047df57644a6861c286cb30425..134d514f2b31cecad88fd7e2e1642f49c3f1760c 100644 (file)
@@ -297,6 +297,8 @@ void R_FreeTexture(rtexture_t *rt)
        else
                Host_Error("R_FreeTexture: texture \"%s\" not linked in pool", glt->identifier);
 
+       R_Mesh_ClearBindingsForTexture(glt->texnum);
+
        switch(vid.renderpath)
        {
        case RENDERPATH_GL11: