X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fglsl%2Fcompiler.cpp;fp=source%2Fglsl%2Fcompiler.cpp;h=16ac375ca57f05660aa83ae89d9e75b4aff2a941;hb=b23a9af95c65c01d949153fc49e5091aaa7c3d30;hp=0e26a16353b46bf1ae73876fc08be92b20621b2d;hpb=f1e31ee641f0cafdfe2015bff206b9ee2ad85abf;p=libs%2Fgl.git diff --git a/source/glsl/compiler.cpp b/source/glsl/compiler.cpp index 0e26a163..16ac375c 100644 --- a/source/glsl/compiler.cpp +++ b/source/glsl/compiler.cpp @@ -209,11 +209,11 @@ const SourceMap &Compiler::get_source_map() const return module->source_map; } -string Compiler::get_stage_debug(Stage::Type stage_type) const +string Compiler::get_stage_debug(Stage::Type stage_type, bool use_colors) const { auto i = find_member(module->stages, stage_type, &Stage::type); if(i!=module->stages.end()) - return DumpTree().apply(*i); + return DumpTree(use_colors).apply(*i); throw key_error(Stage::get_stage_name(stage_type)); }