Browse Source

ogsf: Use GS_set_draw instead of glDrawBuffer

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@73005 15284696-431f-4ddb-bdfa-cd5b030d7da7
Huidae Cho 6 năm trước cách đây
mục cha
commit
cd295c4b4e
1 tập tin đã thay đổi với 3 bổ sung3 xóa
  1. 3 3
      lib/ogsf/gsd_views.c

+ 3 - 3
lib/ogsf/gsd_views.c

@@ -66,7 +66,7 @@ int gsd_get_los(float (*vect)[3], short sx, short sy)
     vect[TO][Z] = tz;
 
     /* DEBUG - should just be a dot */
-    /* OGLXXX frontbuffer: other possibilities include GL_FRONT_AND_BACK */
+    /* OGLXXX frontbuffer: other possibilities include GSD_BOTH */
     GS_set_draw((1) ? GSD_FRONT : GSD_BACK);
     glPushMatrix();
     gsd_do_scale(1);
@@ -82,8 +82,8 @@ int gsd_get_los(float (*vect)[3], short sx, short sy)
     gsd_linewidth(1);
     glPopMatrix();
 
-    /* OGLXXX frontbuffer: other possibilities include GL_FRONT_AND_BACK */
-    GS_set_draw((0) ? GL_FRONT : GL_BACK);
+    /* OGLXXX frontbuffer: other possibilities include GSD_BOTH */
+    GS_set_draw((0) ? GSD_FRONT : GSD_BACK);
 
     return (1);
 }