]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - gl_textures.c
gltexture_t->glisdepthstencil fix
[xonotic/darkplaces.git] / 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;