]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fixed viewsize issues with r_viewfbo
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 31 Mar 2011 23:58:16 +0000 (23:58 +0000)
committerRudolf Polzer <divVerent@xonotic.org>
Sun, 3 Apr 2011 20:48:27 +0000 (22:48 +0200)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10991 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=420ba41845f1e01bb610c1309a71930d7ddfb437

gl_rmain.c

index caa7bbce785dfbff5eaf95a4e56669bf48a51064..447b5f0cc950f987e43302f71fa4c7265d853560 100644 (file)
@@ -5685,8 +5685,8 @@ void R_Bloom_StartFrame(void)
        // calculate desired texture sizes
        if (vid.support.arb_texture_non_power_of_two)
        {
-               screentexturewidth = r_refdef.view.width;
-               screentextureheight = r_refdef.view.height;
+               screentexturewidth = vid.width;
+               screentextureheight = vid.height;
                bloomtexturewidth = r_bloomstate.bloomwidth;
                bloomtextureheight = r_bloomstate.bloomheight;
        }