Browse Source

fix compilation error

David Rose 18 years ago
parent
commit
21eea17348
1 changed files with 3 additions and 1 deletions
  1. 3 1
      panda/src/glstuff/glGraphicsStateGuardian_src.cxx

+ 3 - 1
panda/src/glstuff/glGraphicsStateGuardian_src.cxx

@@ -746,7 +746,9 @@ reset() {
   }
   _max_draw_buffers = 1;
   if (_glDrawBuffers != 0) {
-    GLP(GetIntegerv)(GL_MAX_DRAW_BUFFERS, &_max_draw_buffers);
+    GLint max_draw_buffers;
+    GLP(GetIntegerv)(GL_MAX_DRAW_BUFFERS, &max_draw_buffers);
+    _max_draw_buffers = max_draw_buffers;
   }
 
   _supports_occlusion_query = false;