[GRASS-SVN] r73004 - grass/trunk/lib/ogsf
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Jul 25 13:17:24 PDT 2018
Author: hcho
Date: 2018-07-25 13:17:24 -0700 (Wed, 25 Jul 2018)
New Revision: 73004
Modified:
grass/trunk/lib/ogsf/gsd_views.c
Log:
ogsf: Use GS_set_draw instead of glDrawBuffer
Modified: grass/trunk/lib/ogsf/gsd_views.c
===================================================================
--- grass/trunk/lib/ogsf/gsd_views.c 2018-07-25 15:52:52 UTC (rev 73003)
+++ grass/trunk/lib/ogsf/gsd_views.c 2018-07-25 20:17:24 UTC (rev 73004)
@@ -67,7 +67,7 @@
/* DEBUG - should just be a dot */
/* OGLXXX frontbuffer: other possibilities include GL_FRONT_AND_BACK */
- glDrawBuffer((1) ? GL_FRONT : GL_BACK);
+ GS_set_draw((1) ? GSD_FRONT : GSD_BACK);
glPushMatrix();
gsd_do_scale(1);
gsd_linewidth(3);
@@ -83,7 +83,7 @@
glPopMatrix();
/* OGLXXX frontbuffer: other possibilities include GL_FRONT_AND_BACK */
- glDrawBuffer((0) ? GL_FRONT : GL_BACK);
+ GS_set_draw((0) ? GL_FRONT : GL_BACK);
return (1);
}
More information about the grass-commit
mailing list