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

Method checkCompileStatus

source/globjects/source/Shader.cpp:213–228  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

211}
212
213bool Shader::checkCompileStatus() const
214{
215 GLboolean status = static_cast<GLboolean>(get(GL_COMPILE_STATUS));
216
217 if (status == GL_FALSE)
218 {
219 critical()
220 << "Compiler error:" << std::endl
221 << shaderString() << std::endl
222 << infoLog();
223
224 return false;
225 }
226
227 return true;
228}
229
230std::string Shader::infoLog() const
231{

Callers

nothing calls this directly

Calls 2

getFunction · 0.85
criticalFunction · 0.85

Tested by

no test coverage detected