From: divverent Date: Sun, 1 Mar 2015 18:54:11 +0000 (+0000) Subject: Fix texture type of renderbuffers (was random crap, now is GL_TEXTURE_2D). X-Git-Tag: xonotic-v0.8.1~8^2~39 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e6a20dbedf9ea11158142bc2c8c16dfa721d8870;p=xonotic%2Fdarkplaces.git Fix texture type of renderbuffers (was random crap, now is GL_TEXTURE_2D). git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12164 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/gl_textures.c b/gl_textures.c index 24b6aa53..b509307f 100644 --- a/gl_textures.c +++ b/gl_textures.c @@ -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->textype = texinfo; + glt->textype = GL_TEXTURE_2D; glt->texturetype = textype; glt->inputdatasize = width*height*texinfo->internalbytesperpixel; glt->palette = NULL;