mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 18:31:55 -04:00
fix to solve link with mesa problem
This commit is contained in:
parent
56b180596c
commit
642e15632a
@ -2345,10 +2345,10 @@ issue_tex_matrix(const TexMatrixAttrib *attrib) {
|
|||||||
// Also maintain the map of CgShader objects to
|
// Also maintain the map of CgShader objects to
|
||||||
// respective GLCgShaderContexts
|
// respective GLCgShaderContexts
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
#ifdef HAVE_CGGL
|
|
||||||
void CLP(GraphicsStateGuardian)::
|
void CLP(GraphicsStateGuardian)::
|
||||||
issue_cg_shader_bind(const CgShaderAttrib *attrib) {
|
issue_cg_shader_bind(const CgShaderAttrib *attrib) {
|
||||||
|
#ifdef HAVE_CGGL
|
||||||
if (attrib->is_off()) { //Current node has no shaders
|
if (attrib->is_off()) { //Current node has no shaders
|
||||||
if (_cg_shader != (CgShader *) NULL) {
|
if (_cg_shader != (CgShader *) NULL) {
|
||||||
_gl_cg_shader_contexts[_cg_shader]->un_bind();// Prev node had shaders
|
_gl_cg_shader_contexts[_cg_shader]->un_bind();// Prev node had shaders
|
||||||
@ -2373,9 +2373,9 @@ issue_cg_shader_bind(const CgShaderAttrib *attrib) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
// Function: CLP(GraphicsStateGuardian)::issue_tex_gen
|
// Function: CLP(GraphicsStateGuardian)::issue_tex_gen
|
||||||
// Access: Public, Virtual
|
// Access: Public, Virtual
|
||||||
|
Loading…
x
Reference in New Issue
Block a user