Oops, fix build error on Windows

This commit is contained in:
rdb 2009-06-27 05:55:12 +00:00
parent 07ce815f64
commit e2b6f78611
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ CLP(ShaderContext)(Shader *s, GSG *gsg) : ShaderContext(s) {
_name = s->get_filename ( );
#ifdef HAVE_CG
if (s->get_header() == "//Cg") {
if (s->get_language() == Shader::SL_Cg) {
// Ask the shader to compile itself for us and
// to give us the resulting Cg program objects.