]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
make sure depth test is disabled before rendering bloom
authoreihrul <eihrul@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 12 Feb 2012 20:30:58 +0000 (20:30 +0000)
committerRudolf Polzer <divverent@alientrap.org>
Thu, 16 Feb 2012 20:44:05 +0000 (21:44 +0100)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11687 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=f60f3cd4fdf7ff946904e53a07d3a4e8b5c5da5f

gl_rmain.c

index 961bb7021b11bd4efd94bb7c19ba177b40bf73b3..fc37904179296abcbcb138bc5df24df06f410ad9 100644 (file)
@@ -6233,6 +6233,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...