From: eihrul Date: Sun, 12 Feb 2012 20:30:58 +0000 (+0000) Subject: make sure depth test is disabled before rendering bloom X-Git-Tag: xonotic-v0.8.0~96^2~327 X-Git-Url: http://de.git.xonotic.org/?a=commitdiff_plain;h=f60f3cd4fdf7ff946904e53a07d3a4e8b5c5da5f;hp=45808e8faa21d21e4349e9e45d0f545da0c1efbb;p=xonotic%2Fdarkplaces.git make sure depth test is disabled before rendering bloom git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11687 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/gl_rmain.c b/gl_rmain.c index 3b3bc506..868fb5cc 100644 --- a/gl_rmain.c +++ b/gl_rmain.c @@ -6238,6 +6238,7 @@ static void R_Bloom_MakeTexture(void) r_fb.bloomindex = 0; R_Mesh_SetRenderTargets(r_fb.bloomfbo[r_fb.bloomindex], NULL, r_fb.bloomtexture[r_fb.bloomindex], NULL, NULL, NULL); R_SetViewport(&r_fb.bloomviewport); + GL_DepthTest(false); GL_BlendFunc(GL_ONE, GL_ZERO); GL_Color(colorscale, colorscale, colorscale, 1); // D3D has upside down Y coords, the easiest way to flip this is to flip the screen vertices rather than the texcoords, so we just use a different array for that...