Disable anti-aliasing initialization, was causing GL_SELECT issues

NVidia (at least) GL drivers don't provide correct picking through GL_SELECT when the GL context is initialized with sample buffers.

So we can't have FSAA on for now as it breaks border,lasso,.. select.
This commit is contained in:
Damien Plisson 2010-01-08 14:40:47 +00:00
parent a868e8623c
commit 05af8dfe53
2 changed files with 5 additions and 3 deletions

@ -411,7 +411,8 @@ class USERPREF_PT_system(bpy.types.Panel):
col.prop(system, "clip_alpha", slider=True)
col.prop(system, "use_mipmaps")
col.prop(system, "use_vbos")
col.prop(system, "use_antialiasing")
#Anti-aliasing is disabled as it breaks broder/lasso select
#col.prop(system, "use_antialiasing")
col.label(text="Window Draw Method:")
col.row().prop(system, "window_draw_method", expand=True)
col.label(text="Textures:")

@ -307,13 +307,14 @@ static void wm_window_add_ghostwindow(wmWindowManager *wm, char *title, wmWindow
inital_state += macPrefState;
}
#endif
/* Disable AA for now, as GL_SELECT (used for border, lasso, ... select)
doesn't work well when AA is initialized, even if not used. */
ghostwin= GHOST_CreateWindow(g_system, title,
win->posx, posy, win->sizex, win->sizey,
inital_state,
GHOST_kDrawingContextTypeOpenGL,
0 /* no stereo */,
4 /* 4x AA */);
0 /* no AA */);
if (ghostwin) {