From: havoc Date: Thu, 12 Apr 2018 21:44:41 +0000 (+0000) Subject: Fix a bug where R_GetTexture could return 0 rather than a white texture. X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=3307772b098f1831642177bc53c975b402d57c4f;p=xonotic%2Fdarkplaces.git Fix a bug where R_GetTexture could return 0 rather than a white texture. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12386 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/gl_textures.c b/gl_textures.c index 06373653..69938da9 100644 --- a/gl_textures.c +++ b/gl_textures.c @@ -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)