[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [25814] trunk/blender/intern/ghost/intern/ GHOST_WindowX11.cpp: Viewport AA for X11

Campbell Barton ideasman42 at gmail.com
Thu Jan 7 22:58:30 CET 2010


Revision: 25814
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=25814
Author:   campbellbarton
Date:     2010-01-07 22:58:28 +0100 (Thu, 07 Jan 2010)

Log Message:
-----------
Viewport AA for X11

Modified Paths:
--------------
    trunk/blender/intern/ghost/intern/GHOST_WindowX11.cpp

Modified: trunk/blender/intern/ghost/intern/GHOST_WindowX11.cpp
===================================================================
--- trunk/blender/intern/ghost/intern/GHOST_WindowX11.cpp	2010-01-07 21:52:04 UTC (rev 25813)
+++ trunk/blender/intern/ghost/intern/GHOST_WindowX11.cpp	2010-01-07 21:58:28 UTC (rev 25814)
@@ -182,8 +182,11 @@
 	attributes[i++] = GLX_BLUE_SIZE;  attributes[i++] = 1;
 	attributes[i++] = GLX_GREEN_SIZE; attributes[i++] = 1;
 	attributes[i++] = GLX_DEPTH_SIZE; attributes[i++] = 1;
+	/* GLX 1.4+, multi-sample */
+	attributes[i++] = GLX_SAMPLE_BUFFERS; attributes[i++] = 1;
+	attributes[i++] = GLX_SAMPLES; attributes[i++] = m_numOfAASamples;
 	attributes[i] = None;
-	
+
 	m_visual = glXChooseVisual(m_display, DefaultScreen(m_display), attributes);
 
 	if (m_visual == NULL) {





More information about the Bf-blender-cvs mailing list