Fix #20896: FSAA wasn't disabled properly and still enabled for 3d view

drawing, which apparently still slows things down even if you don't have
the window set up to do this.
This commit is contained in:
Brecht Van Lommel
2010-01-31 09:49:46 +00:00
parent 1832df2764
commit 2704e282a4

View File

@@ -2048,8 +2048,8 @@ void view3d_main_area_draw(const bContext *C, ARegion *ar)
v3d->zbuf= FALSE;
/* enables anti-aliasing for 3D view drawing */
if (!(U.gameflags & USER_DISABLE_AA))
glEnable(GL_MULTISAMPLE_ARB);
/*if (!(U.gameflags & USER_DISABLE_AA))
glEnable(GL_MULTISAMPLE_ARB);*/
// needs to be done always, gridview is adjusted in drawgrid() now
rv3d->gridview= v3d->grid;
@@ -2158,8 +2158,8 @@ void view3d_main_area_draw(const bContext *C, ARegion *ar)
BIF_draw_manipulator(C);
/* Disable back anti-aliasing */
if (!(U.gameflags & USER_DISABLE_AA))
glDisable(GL_MULTISAMPLE_ARB);
/*if (!(U.gameflags & USER_DISABLE_AA))
glDisable(GL_MULTISAMPLE_ARB);*/
if(v3d->zbuf) {
v3d->zbuf= FALSE;