mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-19 05:06:25 -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 ( );
|
_name = s->get_filename ( );
|
||||||
|
|
||||||
#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