mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
Fix Mesa compile error
This commit is contained in:
parent
e2b6f78611
commit
7c3999289d
@ -33,8 +33,8 @@ TypeHandle CLP(ShaderContext)::_type_handle;
|
|||||||
CLP(ShaderContext)::
|
CLP(ShaderContext)::
|
||||||
CLP(ShaderContext)(Shader *s, GSG *gsg) : ShaderContext(s) {
|
CLP(ShaderContext)(Shader *s, GSG *gsg) : ShaderContext(s) {
|
||||||
_last_gsg = gsg;
|
_last_gsg = gsg;
|
||||||
_cg_context = 0;
|
|
||||||
#ifdef HAVE_CG
|
#ifdef HAVE_CG
|
||||||
|
_cg_context = 0;
|
||||||
if (s->get_language() == Shader::SL_Cg) {
|
if (s->get_language() == Shader::SL_Cg) {
|
||||||
|
|
||||||
// Ask the shader to compile itself for us and
|
// Ask the shader to compile itself for us and
|
||||||
|
Loading…
x
Reference in New Issue
Block a user