[GRASS-SVN] r72999 - grass/trunk/lib/nviz

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Jul 19 17:40:45 PDT 2018


Author: hcho
Date: 2018-07-19 17:40:45 -0700 (Thu, 19 Jul 2018)
New Revision: 72999

Modified:
   grass/trunk/lib/nviz/render.c
Log:
nviz: Move aglSetPBuffer right after aglCreatePBuffer

Modified: grass/trunk/lib/nviz/render.c
===================================================================
--- grass/trunk/lib/nviz/render.c	2018-07-19 14:53:47 UTC (rev 72998)
+++ grass/trunk/lib/nviz/render.c	2018-07-20 00:40:45 UTC (rev 72999)
@@ -144,6 +144,7 @@
 
     /* create an off-screen AGL rendering area */
     aglCreatePBuffer(width, height, GL_TEXTURE_2D, GL_RGBA, 0, &(rwin->windowId));
+    aglSetPBuffer(rwin->contextId, rwin->windowId, 0, 0, 0);
 #elif defined(OPENGL_WINDOWS)
     WNDCLASS wc = {0};
     HWND hWnd;
@@ -224,7 +225,6 @@
 	return 1;
 
     aglSetCurrentContext(rwin->contextId);
-    aglSetPBuffer(rwin->contextId, rwin->windowId, 0, 0, 0);
 #elif defined(OPENGL_WINDOWS)
     if (!rwin->displayId || !rwin->contextId)
 	return 0;



More information about the grass-commit mailing list