]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
gltexture_t->glisdepthstencil fix
authoreihrul <eihrul@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 9 Dec 2014 13:38:22 +0000 (13:38 +0000)
committerRudolf Polzer <divVerent@xonotic.org>
Mon, 29 Dec 2014 11:14:03 +0000 (12:14 +0100)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12107 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=22dac77bc9bd23097c69404c6d0f5160c5330dc1

gl_textures.c

index 4617d0d6ea987f4333367a76791861fb5ad0ee64..24b6aa53c297ff05a907eef1a33a6e21f6a61469 100644 (file)
@@ -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;