Initialize _cg_context

This commit is contained in:
rdb 2010-01-03 10:27:13 +00:00
parent ccc9b30614
commit 32790419f4

View File

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