From 4aeba65f1abb504a566005f009fc59d60b8271c0 Mon Sep 17 00:00:00 2001 From: Josh Yelon Date: Wed, 12 Sep 2007 19:27:59 +0000 Subject: [PATCH] Added basic_shaders_only --- panda/src/glstuff/glGraphicsStateGuardian_src.cxx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/panda/src/glstuff/glGraphicsStateGuardian_src.cxx b/panda/src/glstuff/glGraphicsStateGuardian_src.cxx index 5ebbf8d870..f91dee5598 100644 --- a/panda/src/glstuff/glGraphicsStateGuardian_src.cxx +++ b/panda/src/glstuff/glGraphicsStateGuardian_src.cxx @@ -688,8 +688,13 @@ reset() { if (cgGLIsProfileSupported(CG_PROFILE_ARBFP1) && cgGLIsProfileSupported(CG_PROFILE_ARBVP1)) { _supports_basic_shaders = true; - _shader_caps._active_vprofile = (int)cgGLGetLatestProfile(CG_GL_VERTEX); - _shader_caps._active_fprofile = (int)cgGLGetLatestProfile(CG_GL_FRAGMENT); + if (basic_shaders_only) { + _shader_caps._active_vprofile = (int)CG_PROFILE_ARBVP1; + _shader_caps._active_fprofile = (int)CG_PROFILE_ARBFP1; + } else { + _shader_caps._active_vprofile = (int)cgGLGetLatestProfile(CG_GL_VERTEX); + _shader_caps._active_fprofile = (int)cgGLGetLatestProfile(CG_GL_FRAGMENT); + } _shader_caps._ultimate_vprofile = (int)CG_PROFILE_VP40; _shader_caps._ultimate_fprofile = (int)CG_PROFILE_FP40; _glBindProgram = (PFNGLBINDPROGRAMARBPROC)