[GRASS-SVN] r72971 - grass/trunk/lib/ogsf

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Jul 10 09:48:10 PDT 2018


Author: hcho
Date: 2018-07-10 09:48:10 -0700 (Tue, 10 Jul 2018)
New Revision: 72971

Modified:
   grass/trunk/lib/ogsf/gsd_prim.c
Log:
ogsf: comments

Modified: grass/trunk/lib/ogsf/gsd_prim.c
===================================================================
--- grass/trunk/lib/ogsf/gsd_prim.c	2018-07-10 16:39:54 UTC (rev 72970)
+++ grass/trunk/lib/ogsf/gsd_prim.c	2018-07-10 16:48:10 UTC (rev 72971)
@@ -441,7 +441,7 @@
  */
 void gsd_bothbuffers(void)
 {
-    /* OGLXXX frontbuffer: other possibilities include GL_FRONT_AND_BACK */
+    /* OGLXXX bothbuffer: other possibilities include GL_FRONT, GL_BACK */
     glDrawBuffer(GL_FRONT_AND_BACK);
 
     return;
@@ -471,6 +471,7 @@
 {
     /* OGLXXX backbuffer: other possibilities include GL_FRONT_AND_BACK */
     glDrawBuffer(GL_BACK);
+
     return;
 }
 
@@ -479,9 +480,8 @@
  */
 void gsd_swapbuffers(void)
 {
-    /* OGLXXX swapbuffers: 
-       glXSwapBuffers(*display, window);
-       replace display and window */
+    /* OGLXXX swapbuffers: copy the back buffer to the front;
+     * the back buffer becomes undefined afterward */
 #if defined(OPENGL_X11)
     glXSwapBuffers(glXGetCurrentDisplay(), glXGetCurrentDrawable());
 #elif defined(OPENGL_AQUA)



More information about the grass-commit mailing list