浏览代码

Initialize _cg_context

rdb 16 年之前
父节点
当前提交
32790419f4
共有 1 个文件被更改,包括 1 次插入0 次删除
  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 ( );
   _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