]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix a compile error in recent bloom changes
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 19 Oct 2011 07:33:08 +0000 (07:33 +0000)
committerRudolf Polzer <divverent@xonotic.org>
Fri, 21 Oct 2011 11:34:13 +0000 (13:34 +0200)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11445 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=4e85279d2ec63bc45263ed22105e20774a731182

gl_rmain.c

index 2b508dca34a3ffca8ff71d5f67f01b1245713e33..b61ea3f1894e7cc044a93462299933104efaaa1b 100644 (file)
@@ -6545,7 +6545,7 @@ static void R_BlendView(int fbo, rtexture_t *depthtexture, rtexture_t *colortext
                        R_Mesh_PrepareVertices_Mesh_Arrays(4, r_d3dscreenvertex3f, NULL, NULL, NULL, NULL, r_fb.screentexcoord2f, r_fb.bloomtexcoord2f);
                        R_SetupShader_SetPermutationHLSL(SHADERMODE_POSTPROCESS, permutation);
                        R_Mesh_TexBind(GL20TU_FIRST     , r_fb.colortexture);
-                       R_Mesh_TexBind(GL20TU_SECOND    , r_fb.bloomtexture);
+                       R_Mesh_TexBind(GL20TU_SECOND    , r_fb.bloomtexture[r_fb.bloomindex]);
                        R_Mesh_TexBind(GL20TU_GAMMARAMPS, r_texture_gammaramps       );
                        hlslPSSetParameter4f(D3DPSREGISTER_ViewTintColor        , r_refdef.viewblend[0], r_refdef.viewblend[1], r_refdef.viewblend[2], r_refdef.viewblend[3]);
                        hlslPSSetParameter2f(D3DPSREGISTER_PixelSize            , 1.0/r_fb.screentexturewidth, 1.0/r_fb.screentextureheight);