瀏覽代碼

no UH_stream in OpenGL ES

David Rose 16 年之前
父節點
當前提交
114f0650f7
共有 1 個文件被更改,包括 4 次插入0 次删除
  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) {
 get_usage(Geom::UsageHint usage_hint) {
   switch (usage_hint) {
   switch (usage_hint) {
   case Geom::UH_stream:
   case Geom::UH_stream:
+#ifdef OPENGLES_1
+    return GL_DYNAMIC_DRAW;
+#else
     return GL_STREAM_DRAW;
     return GL_STREAM_DRAW;
+#endif  // OPENGLES_1
 
 
   case Geom::UH_static:
   case Geom::UH_static:
   case Geom::UH_unspecified:
   case Geom::UH_unspecified: