From: eihrul Date: Tue, 9 Dec 2014 13:38:22 +0000 (+0000) Subject: gltexture_t->glisdepthstencil fix X-Git-Tag: xonotic-v0.8.1~29^2~53 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=22dac77bc9bd23097c69404c6d0f5160c5330dc1;p=xonotic%2Fdarkplaces.git gltexture_t->glisdepthstencil fix git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12107 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/gl_textures.c b/gl_textures.c index 4617d0d6..24b6aa53 100644 --- a/gl_textures.c +++ b/gl_textures.c @@ -1971,7 +1971,7 @@ rtexture_t *R_LoadTextureRenderBuffer(rtexturepool_t *rtexturepool, const char * glt->sides = glt->texturetype == GLTEXTURETYPE_CUBEMAP ? 6 : 1; glt->texnum = 0; glt->dirty = false; - glt->glisdepthstencil = glt->texturetype == TEXTYPE_DEPTHBUFFER24STENCIL8; + glt->glisdepthstencil = textype == TEXTYPE_DEPTHBUFFER24STENCIL8; glt->gltexturetypeenum = gltexturetypeenums[glt->texturetype]; // init the dynamic texture attributes, too [11/22/2007 Black] glt->updatecallback = NULL;