]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/builtin.cpp
Use a different method of adding builtins to stages
[libs/gl.git] / source / glsl / builtin.cpp
index 049740657a5c251432f5054a67a40d1fa4b98164..955266fe0a1ce4ad3a8abfcd9fb3afb0340266f8 100644 (file)
@@ -49,6 +49,8 @@ Stage *get_builtins(Stage::Type type)
        if(!module)
                return 0;
 
+       if(type==Stage::SHARED)
+               return &module->shared;
        for(list<Stage>::iterator i=module->stages.begin(); i!=module->stages.end(); ++i)
                if(i->type==type)
                        return &*i;