X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fglsl%2Fcompiler.cpp;h=3516048ca7e62ae9fa83dc52c0f14a7fb0329745;hb=cfee1ea700d860db170fd1621f3716bc47b677f8;hp=c5f0a9a3d05b6fd640f9afe5a5cba5a05e0ec5ab;hpb=1f870744029d50f29a060ddf68b8b7c40c6ef1ed;p=libs%2Fgl.git diff --git a/source/glsl/compiler.cpp b/source/glsl/compiler.cpp index c5f0a9a3..3516048c 100644 --- a/source/glsl/compiler.cpp +++ b/source/glsl/compiler.cpp @@ -108,7 +108,7 @@ string Compiler::get_combined_glsl() const for(list::iterator i=module->stages.begin(); i!=module->stages.end(); ++i) { glsl += format("#pragma MSP stage(%s)\n", Stage::get_stage_name(i->type)); - glsl += Formatter().apply(*i, MODULE); + glsl += Formatter().apply(*i); glsl += '\n'; } @@ -128,7 +128,7 @@ string Compiler::get_stage_glsl(Stage::Type stage_type) const { for(list::iterator i=module->stages.begin(); i!=module->stages.end(); ++i) if(i->type==stage_type) - return Formatter().apply(*i, PROGRAM); + return Formatter().apply(*i); throw key_error(Stage::get_stage_name(stage_type)); }