From 05af8dfe53728ed3276485fa04fcf9a592bdc203 Mon Sep 17 00:00:00 2001 From: Damien Plisson Date: Fri, 8 Jan 2010 14:40:47 +0000 Subject: [PATCH] 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. --- release/scripts/ui/space_userpref.py | 3 ++- source/blender/windowmanager/intern/wm_window.c | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/release/scripts/ui/space_userpref.py b/release/scripts/ui/space_userpref.py index 11e3a8e4fd9..8d52d05101e 100644 --- a/release/scripts/ui/space_userpref.py +++ b/release/scripts/ui/space_userpref.py @@ -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:") diff --git a/source/blender/windowmanager/intern/wm_window.c b/source/blender/windowmanager/intern/wm_window.c index 61e6063329a..94248fb392c 100644 --- a/source/blender/windowmanager/intern/wm_window.c +++ b/source/blender/windowmanager/intern/wm_window.c @@ -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) {