Fix Mesa compile error

This commit is contained in:
rdb 2009-06-27 13:12:40 +00:00
parent e2b6f78611
commit 7c3999289d

View File

@ -33,8 +33,8 @@ TypeHandle CLP(ShaderContext)::_type_handle;
CLP(ShaderContext)::
CLP(ShaderContext)(Shader *s, GSG *gsg) : ShaderContext(s) {
_last_gsg = gsg;
_cg_context = 0;
#ifdef HAVE_CG
_cg_context = 0;
if (s->get_language() == Shader::SL_Cg) {
// Ask the shader to compile itself for us and