From b1c2cd729bb23d58b1e6f64718d549c42fb2b9fd Mon Sep 17 00:00:00 2001 From: Josh Yelon Date: Sun, 6 Nov 2005 22:00:32 +0000 Subject: [PATCH] Added code to enable _supports_basic_shaders --- panda/src/glstuff/glGraphicsStateGuardian_src.cxx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/panda/src/glstuff/glGraphicsStateGuardian_src.cxx b/panda/src/glstuff/glGraphicsStateGuardian_src.cxx index 1c14c9446b..ba86662ead 100644 --- a/panda/src/glstuff/glGraphicsStateGuardian_src.cxx +++ b/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;