Browse Source

no UH_stream in OpenGL ES

David Rose 16 years ago
parent
commit
114f0650f7
1 changed files with 4 additions and 0 deletions
  1. 4 0
      panda/src/glstuff/glGraphicsStateGuardian_src.cxx

+ 4 - 0
panda/src/glstuff/glGraphicsStateGuardian_src.cxx

@@ -5851,7 +5851,11 @@ GLenum CLP(GraphicsStateGuardian)::
 get_usage(Geom::UsageHint usage_hint) {
   switch (usage_hint) {
   case Geom::UH_stream:
+#ifdef OPENGLES_1
+    return GL_DYNAMIC_DRAW;
+#else
     return GL_STREAM_DRAW;
+#endif  // OPENGLES_1
 
   case Geom::UH_static:
   case Geom::UH_unspecified: