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 0637365..69938da 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)