| 211 | } |
| 212 | |
| 213 | bool 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 | |
| 230 | std::string Shader::infoLog() const |
| 231 | { |