From: Mikko Rasa Date: Sat, 11 Aug 2012 13:38:35 +0000 (+0300) Subject: Don't link program with the transform feature in constructor X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=b37c25fb969b3fb6936ac456a07bd69c4c10cd00;p=libs%2Fgl.git Don't link program with the transform feature in constructor The transform feature produces calls to external functions, which need to be added in a separate shader. Trying to link in the constructor only produces link errors. --- diff --git a/source/program.cpp b/source/program.cpp index 52150f3f..9e54d6a8 100644 --- a/source/program.cpp +++ b/source/program.cpp @@ -97,7 +97,8 @@ Program::Program(const StandardFeatures &features) init(); add_standard_shaders(features); - link(); + if(!features.transform) + link(); } Program::Program(const string &vert, const string &frag)