]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
Argh. Fix my last fix :( changed the wrong field to GL_TEXTURE_2D.
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 2 Mar 2015 08:52:30 +0000 (08:52 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 2 Mar 2015 08:52:30 +0000 (08:52 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12165 d7cf8633-e32d-0410-b094-e92efae38249

gl_textures.c

index b509307f92ad25feafb29f6b6fd0446b9df89725..ded21684571cd6f05907751f46da198807d91a11 100644 (file)
@@ -1960,7 +1960,7 @@ rtexture_t *R_LoadTextureRenderBuffer(rtexturepool_t *rtexturepool, const char *
        glt->inputdepth = 1;
        glt->flags = TEXF_RENDERTARGET | TEXF_CLAMP | TEXF_FORCENEAREST;
        glt->miplevel = 0;
        glt->inputdepth = 1;
        glt->flags = TEXF_RENDERTARGET | TEXF_CLAMP | TEXF_FORCENEAREST;
        glt->miplevel = 0;
-       glt->textype = GL_TEXTURE_2D;
+       glt->textype = texinfo;
        glt->texturetype = textype;
        glt->inputdatasize = width*height*texinfo->internalbytesperpixel;
        glt->palette = NULL;
        glt->texturetype = textype;
        glt->inputdatasize = width*height*texinfo->internalbytesperpixel;
        glt->palette = NULL;
@@ -1972,7 +1972,7 @@ rtexture_t *R_LoadTextureRenderBuffer(rtexturepool_t *rtexturepool, const char *
        glt->texnum = 0;
        glt->dirty = false;
        glt->glisdepthstencil = textype == TEXTYPE_DEPTHBUFFER24STENCIL8;
        glt->texnum = 0;
        glt->dirty = false;
        glt->glisdepthstencil = textype == TEXTYPE_DEPTHBUFFER24STENCIL8;
-       glt->gltexturetypeenum = gltexturetypeenums[glt->texturetype];
+       glt->gltexturetypeenum = GL_TEXTURE_2D;
        // init the dynamic texture attributes, too [11/22/2007 Black]
        glt->updatecallback = NULL;
        glt->updatacallback_data = NULL;
        // init the dynamic texture attributes, too [11/22/2007 Black]
        glt->updatecallback = NULL;
        glt->updatacallback_data = NULL;