Browse Source

Fix regression with depth-stencil textures reported as unsupported

rdb 10 years ago
parent
commit
b9440d634c
1 changed files with 3 additions and 0 deletions
  1. 3 0
      panda/src/glstuff/glGraphicsStateGuardian_src.cxx

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

@@ -1114,6 +1114,9 @@ reset() {
 #else
 #else
   _supports_depth_texture = (is_at_least_gl_version(1, 4) ||
   _supports_depth_texture = (is_at_least_gl_version(1, 4) ||
                              has_extension("GL_ARB_depth_texture"));
                              has_extension("GL_ARB_depth_texture"));
+  _supports_depth_stencil = (is_at_least_gl_version(3, 0) ||
+                             has_extension("GL_ARB_framebuffer_object") ||
+                             has_extension("GL_EXT_packed_depth_stencil"));
 #endif
 #endif
 
 
 #ifdef OPENGLES_2
 #ifdef OPENGLES_2