From 642e15632af106316cb5b98d0be141d6a8b76fa9 Mon Sep 17 00:00:00 2001 From: Shalin Shodhan Date: Thu, 5 Aug 2004 21:45:58 +0000 Subject: [PATCH] fix to solve link with mesa problem --- panda/src/glstuff/glGraphicsStateGuardian_src.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/panda/src/glstuff/glGraphicsStateGuardian_src.cxx b/panda/src/glstuff/glGraphicsStateGuardian_src.cxx index e6f6cee540..fbdf729d31 100644 --- a/panda/src/glstuff/glGraphicsStateGuardian_src.cxx +++ b/panda/src/glstuff/glGraphicsStateGuardian_src.cxx @@ -2345,10 +2345,10 @@ issue_tex_matrix(const TexMatrixAttrib *attrib) { // Also maintain the map of CgShader objects to // respective GLCgShaderContexts //////////////////////////////////////////////////////////////////// -#ifdef HAVE_CGGL + void CLP(GraphicsStateGuardian):: issue_cg_shader_bind(const CgShaderAttrib *attrib) { - +#ifdef HAVE_CGGL if (attrib->is_off()) { //Current node has no shaders if (_cg_shader != (CgShader *) NULL) { _gl_cg_shader_contexts[_cg_shader]->un_bind();// Prev node had shaders @@ -2373,9 +2373,9 @@ issue_cg_shader_bind(const CgShaderAttrib *attrib) { } } - -} #endif +} + //////////////////////////////////////////////////////////////////// // Function: CLP(GraphicsStateGuardian)::issue_tex_gen // Access: Public, Virtual