From 3307772b098f1831642177bc53c975b402d57c4f Mon Sep 17 00:00:00 2001 From: havoc Date: Thu, 12 Apr 2018 21:44:41 +0000 Subject: [PATCH] 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 --- gl_textures.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.39.2