rdb 13 年 前
コミット
68863d5c14
1 ファイル変更5 行追加1 行削除
  1. 5 1
      panda/src/glstuff/glShaderContext_src.I

+ 5 - 1
panda/src/glstuff/glShaderContext_src.I

@@ -43,7 +43,11 @@ valid() {
 ////////////////////////////////////////////////////////////////////
 INLINE bool CLP(ShaderContext)::
 uses_custom_vertex_arrays() {
-  return true;
+  #ifdef OPENGLES_2
+    return true;
+  #else
+    return (_shader->get_language() == Shader::SL_Cg);
+  #endif
 }
 
 ////////////////////////////////////////////////////////////////////