rdb 13 years ago
parent
commit
68863d5c14
1 changed files with 5 additions and 1 deletions
  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)::
 INLINE bool CLP(ShaderContext)::
 uses_custom_vertex_arrays() {
 uses_custom_vertex_arrays() {
-  return true;
+  #ifdef OPENGLES_2
+    return true;
+  #else
+    return (_shader->get_language() == Shader::SL_Cg);
+  #endif
 }
 }
 
 
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////