[GRASS-CVS] hamish: grass6/visualization/nviz/src do_zoom.c, 2.13, 2.13.2.1

grass at intevation.de grass at intevation.de
Fri Nov 30 22:19:54 EST 2007


Author: hamish

Update of /grassrepository/grass6/visualization/nviz/src
In directory doto:/tmp/cvs-serv25404/grass6/visualization/nviz/src

Modified Files:
      Tag: releasebranch_6_3
	do_zoom.c 
Log Message:
- Reverse behavior for OpenGL PixelBuffers and Pixmaps due to broken X drivers.
  GRASS_NO_GLX_PBUFFERS -> GRASS_GLX_PBUFFERS
  GRASS_NO_GLX_PIXMAPS -> GRASS_GLX_PIXMAPS
  To enable OpenGL acceleration, set the new environment variables above.
(merge from releasebranch_6_2)


Index: do_zoom.c
===================================================================
RCS file: /grassrepository/grass6/visualization/nviz/src/do_zoom.c,v
retrieving revision 2.13
retrieving revision 2.13.2.1
diff -u -d -r2.13 -r2.13.2.1
--- do_zoom.c	19 Apr 2007 16:47:03 -0000	2.13
+++ do_zoom.c	1 Dec 2007 03:19:52 -0000	2.13.2.1
@@ -256,7 +256,7 @@
 
 #ifdef HAVE_PBUFFERS
 #if defined(GLX_PBUFFER_WIDTH) && defined(GLX_PBUFFER_HEIGHT)
-    if (!getenv("GRASS_NO_GLX_PBUFFERS"))
+    if (getenv("GRASS_GLX_PBUFFERS"))
     {
 	static int ver_major, ver_minor;
 
@@ -289,7 +289,7 @@
 #ifdef HAVE_PBUFFERS
     if (!pbuffer)
 #endif
-    if (!getenv("GRASS_NO_GLX_PIXMAPS"))
+    if (getenv("GRASS_GLX_PIXMAPS"))
     {
 	int att[] = {
 	    GLX_RGBA,




More information about the grass-commit mailing list