From: cloudwalk Date: Fri, 29 May 2020 22:37:16 +0000 (+0000) Subject: Fix long standing compile warning that might bite later X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=8b7173e14fe0bffc28225b77d4aaf1d12ffa9bd3;p=xonotic%2Fdarkplaces.git Fix long standing compile warning that might bite later git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12607 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/gl_rmain.c b/gl_rmain.c index 25b88923..6c6e2c1a 100644 --- a/gl_rmain.c +++ b/gl_rmain.c @@ -4695,7 +4695,7 @@ r_rendertarget_t *R_RenderTarget_Get(int texturewidth, int textureheight, textyp if (r->depthisrenderbuffer) r->depthtexture = R_LoadTextureRenderBuffer(r_main_texturepool, va(vabuf, sizeof(vabuf), "renderbuffer%i_depth_type%i", i, (int)r->depthtextype), r->texturewidth, r->textureheight, r->depthtextype); else - r->depthtexture = R_LoadTexture2D(r_main_texturepool, va(vabuf, sizeof(vabuf), "rendertarget%i_depth_type%i", i, j, (int)r->depthtextype), r->texturewidth, r->textureheight, NULL, r->depthtextype, TEXF_RENDERTARGET | TEXF_FORCELINEAR | TEXF_CLAMP, -1, NULL); + r->depthtexture = R_LoadTexture2D(r_main_texturepool, va(vabuf, sizeof(vabuf), "rendertarget%i_depth_type%i", i, (int)r->depthtextype), r->texturewidth, r->textureheight, NULL, r->depthtextype, TEXF_RENDERTARGET | TEXF_FORCELINEAR | TEXF_CLAMP, -1, NULL); } r->fbo = R_Mesh_CreateFramebufferObject(r->depthtexture, r->colortexture[0], r->colortexture[1], r->colortexture[2], r->colortexture[3]); }