X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fglsl%2Fparser.cpp;h=3047e136e288303a5725fcdd2ec1d103b3290c2a;hp=7f0f8e138629f37ee03c67e2b60a1481e5e5b458;hb=2b87464682733c875966c1aa3b3369efbd60b310;hpb=48700161395ece1c8132ee687bf94cd62c6ec2df diff --git a/source/glsl/parser.cpp b/source/glsl/parser.cpp index 7f0f8e13..3047e136 100644 --- a/source/glsl/parser.cpp +++ b/source/glsl/parser.cpp @@ -78,7 +78,7 @@ void Parser::stage_change(Stage::Type stage) if(!allow_stage_change) throw invalid_shader_source(tokenizer.get_location(), "Changing stage not allowed here"); else if(stage<=cur_stage->type) - throw invalid_shader_source(tokenizer.get_location(), "Stage '%s' not allowed here", stage); + throw invalid_shader_source(tokenizer.get_location(), "Stage '%s' not allowed here", Stage::get_stage_name(stage)); module->stages.push_back(stage);