]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Fix a bug where R_GetTexture could return 0 rather than a white texture.
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 12 Apr 2018 21:44:41 +0000 (21:44 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 12 Apr 2018 21:44:41 +0000 (21:44 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12386 d7cf8633-e32d-0410-b094-e92efae38249

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)