[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [25835] trunk/blender: Disable anti-aliasing initialization, was causing GL_SELECT issues

Damien Plisson damien.plisson at yahoo.fr
Fri Jan 8 15:40:47 CET 2010


Revision: 25835
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=25835
Author:   damien78
Date:     2010-01-08 15:40:47 +0100 (Fri, 08 Jan 2010)

Log Message:
-----------
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.

Modified Paths:
--------------
    trunk/blender/release/scripts/ui/space_userpref.py
    trunk/blender/source/blender/windowmanager/intern/wm_window.c

Modified: trunk/blender/release/scripts/ui/space_userpref.py
===================================================================
--- trunk/blender/release/scripts/ui/space_userpref.py	2010-01-08 14:28:04 UTC (rev 25834)
+++ trunk/blender/release/scripts/ui/space_userpref.py	2010-01-08 14:40:47 UTC (rev 25835)
@@ -411,7 +411,8 @@
         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:")

Modified: trunk/blender/source/blender/windowmanager/intern/wm_window.c
===================================================================
--- trunk/blender/source/blender/windowmanager/intern/wm_window.c	2010-01-08 14:28:04 UTC (rev 25834)
+++ trunk/blender/source/blender/windowmanager/intern/wm_window.c	2010-01-08 14:40:47 UTC (rev 25835)
@@ -307,13 +307,14 @@
 		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) {
 		





More information about the Bf-blender-cvs mailing list