MCPcopy Create free account
hub / github.com/cginternals/globjects / compileAttachedShaders

Method compileAttachedShaders

source/globjects/source/Program.cpp:188–203  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

186}
187
188bool Program::compileAttachedShaders() const
189{
190 for (Shader * shader : shaders())
191 {
192 if (shader->isCompiled())
193 continue;
194
195 // Some drivers (e.g. nvidia-331 on Ubuntu 13.04 automatically compile shaders during program linkage)
196 // but we don't want to depend on such behavior
197 shader->compile();
198
199 if (!shader->isCompiled())
200 return false;
201 }
202 return true;
203}
204
205bool Program::checkLinkStatus() const
206{

Callers 2

Calls 2

isCompiledMethod · 0.80
compileMethod · 0.45

Tested by

no test coverage detected