]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - gl_textures.c
Fix a bug where R_GetTexture could return 0 rather than a white texture.
[xonotic/darkplaces.git] / gl_textures.c
index 06373653b34ac10a13e1657c22eaf8fc45b50093..69938da97e8e28667edd40a9e19d43325673d2e5 100644 (file)
@@ -3142,7 +3142,7 @@ int R_RealGetTexture(rtexture_t *rt)
                return glt->texnum;
        }
        else
-               return 0;
+               return r_texture_white->texnum;
 }
 
 void R_ClearTexture (rtexture_t *rt)