Browse Source

Added code to enable _supports_basic_shaders

Josh Yelon 20 years ago
parent
commit
b1c2cd729b
1 changed files with 7 additions and 0 deletions
  1. 7 0
      panda/src/glstuff/glGraphicsStateGuardian_src.cxx

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

@@ -576,6 +576,13 @@ reset() {
     }
   }
 
+#ifdef HAVE_CGGL
+  if (cgGLIsProfileSupported(CG_PROFILE_ARBFP1) &&
+      cgGLIsProfileSupported(CG_PROFILE_ARBVP1)) {
+    _supports_basic_shaders = true;
+  }
+#endif
+
   _supports_framebuffer_object = false;
   if (has_extension("GL_EXT_framebuffer_object")) {
     _supports_framebuffer_object = true;