From e6a20dbedf9ea11158142bc2c8c16dfa721d8870 Mon Sep 17 00:00:00 2001 From: divverent Date: Sun, 1 Mar 2015 18:54:11 +0000 Subject: [PATCH] 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 --- gl_textures.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.2