From b9440d634c2eec6d9ad06f0ba7ce6ac740728d24 Mon Sep 17 00:00:00 2001 From: rdb Date: Mon, 11 May 2015 20:33:14 +0200 Subject: [PATCH] Fix regression with depth-stencil textures reported as unsupported --- panda/src/glstuff/glGraphicsStateGuardian_src.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/panda/src/glstuff/glGraphicsStateGuardian_src.cxx b/panda/src/glstuff/glGraphicsStateGuardian_src.cxx index 7f5718cd4b..2f634ae472 100644 --- a/panda/src/glstuff/glGraphicsStateGuardian_src.cxx +++ b/panda/src/glstuff/glGraphicsStateGuardian_src.cxx @@ -1114,6 +1114,9 @@ reset() { #else _supports_depth_texture = (is_at_least_gl_version(1, 4) || 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 #ifdef OPENGLES_2