]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/syntax.cpp
Report incorrect shader stages by name
[libs/gl.git] / source / glsl / syntax.cpp
index b0d462a816acc854f881f0cafd7e599953ea64af..affc09adfad7badff8ca65d7e39a4730fc9629be 100644 (file)
@@ -267,6 +267,12 @@ Stage::Stage(Stage::Type t):
        previous(0)
 { }
 
+const char *Stage::get_stage_name(Type type)
+{
+       static const char *names[] = { "shared", "vertex", "geometry", "fragment" };
+       return names[type];
+}
+
 
 Module::Module():
        shared(Stage::SHARED)