[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [29244] branches/soc-2010-jwilkins/intern/ ghost/intern: == Stencil Buffers for Linux & OSX ==
Jason Wilkins
Jason.A.Wilkins at gmail.com
Sat Jun 5 18:03:01 CEST 2010
Revision: 29244
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=29244
Author: jwilkins
Date: 2010-06-05 18:03:01 +0200 (Sat, 05 Jun 2010)
Log Message:
-----------
== Stencil Buffers for Linux & OSX ==
I attempted to change GHOST to request stencil buffers for Linux and OSX. I can not test these changes at this time, so please patch if it doesn't work.
Modified Paths:
--------------
branches/soc-2010-jwilkins/intern/ghost/intern/GHOST_WindowCarbon.cpp
branches/soc-2010-jwilkins/intern/ghost/intern/GHOST_WindowX11.cpp
Modified: branches/soc-2010-jwilkins/intern/ghost/intern/GHOST_WindowCarbon.cpp
===================================================================
--- branches/soc-2010-jwilkins/intern/ghost/intern/GHOST_WindowCarbon.cpp 2010-06-05 15:59:48 UTC (rev 29243)
+++ branches/soc-2010-jwilkins/intern/ghost/intern/GHOST_WindowCarbon.cpp 2010-06-05 16:03:01 UTC (rev 29244)
@@ -42,20 +42,22 @@
const GHOST_TInt32 GHOST_WindowCarbon::s_sizeRectSize = 16;
#endif //GHOST_DRAW_CARBON_GUTTER
-static const GLint sPreferredFormatWindow[8] = {
+static const GLint sPreferredFormatWindow[10] = {
AGL_RGBA,
AGL_DOUBLEBUFFER,
AGL_ACCELERATED,
AGL_DEPTH_SIZE, 32,
+AGL_STENCIL_SIZE, 1,
AGL_NONE,
};
-static const GLint sPreferredFormatFullScreen[9] = {
+static const GLint sPreferredFormatFullScreen[11] = {
AGL_RGBA,
AGL_DOUBLEBUFFER,
AGL_ACCELERATED,
AGL_FULLSCREEN,
AGL_DEPTH_SIZE, 32,
+AGL_STENCIL_SIZE, 1,
AGL_NONE,
};
Modified: branches/soc-2010-jwilkins/intern/ghost/intern/GHOST_WindowX11.cpp
===================================================================
--- branches/soc-2010-jwilkins/intern/ghost/intern/GHOST_WindowX11.cpp 2010-06-05 15:59:48 UTC (rev 29243)
+++ branches/soc-2010-jwilkins/intern/ghost/intern/GHOST_WindowX11.cpp 2010-06-05 16:03:01 UTC (rev 29244)
@@ -193,6 +193,7 @@
attributes[i++] = GLX_BLUE_SIZE; attributes[i++] = 1;
attributes[i++] = GLX_GREEN_SIZE; attributes[i++] = 1;
attributes[i++] = GLX_DEPTH_SIZE; attributes[i++] = 1;
+ attributes[i++] = GLX_STENCIL_SIZE; attributes[i++] = 1;
/* GLX >= 1.4 required for multi-sample */
if(samples && (glxVersionMajor >= 1) && (glxVersionMinor >= 4)) {
attributes[i++] = GLX_SAMPLE_BUFFERS; attributes[i++] = 1;
More information about the Bf-blender-cvs
mailing list