mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-18 12:43:44 -04:00
Initialize _cg_context
This commit is contained in:
parent
ccc9b30614
commit
32790419f4
@ -42,6 +42,7 @@ CLP(ShaderContext)(Shader *s, GSG *gsg) : ShaderContext(s) {
|
||||
_name = s->get_filename ( );
|
||||
|
||||
#ifdef HAVE_CG
|
||||
_cg_context = 0;
|
||||
if (s->get_language() == Shader::SL_Cg) {
|
||||
|
||||
// Ask the shader to compile itself for us and
|
||||
|
Loading…
x
Reference in New Issue
Block a user