| 186 | } |
| 187 | |
| 188 | bool 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 | |
| 205 | bool Program::checkLinkStatus() const |
| 206 | { |
no test coverage detected