]> git.rm.cloudns.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)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 31 Mar 2011 23:58:16 +0000 (23:58 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10991 d7cf8633-e32d-0410-b094-e92efae38249

gl_rmain.c

index c119409b6351070a94d2b9bcaae5e3237e289069..66a5e32b0a944ff923bab495906f547d0325f195 100644 (file)
@@ -5692,8 +5692,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;
        }