Browse Source

Initialize _cg_context

rdb 16 years ago
parent
commit
32790419f4
1 changed files with 1 additions and 0 deletions
  1. 1 0
      panda/src/dxgsg9/dxShaderContext9.cxx

+ 1 - 0
panda/src/dxgsg9/dxShaderContext9.cxx

@@ -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