]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/parser.cpp
Report incorrect shader stages by name
[libs/gl.git] / source / glsl / parser.cpp
index 7f0f8e138629f37ee03c67e2b60a1481e5e5b458..3047e136e288303a5725fcdd2ec1d103b3290c2a 100644 (file)
@@ -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);