| 333 | } |
| 334 | |
| 335 | void Graphics::genFramebuffers(GLuint* fb, const char* human_name) { |
| 336 | CHECK_GL_ERROR(); |
| 337 | glGenFramebuffers(1, fb); |
| 338 | framebuffernames[*fb] = std::string(human_name); |
| 339 | |
| 340 | LOGI << "Created framebuffer: " << *fb << " " << framebuffernames[*fb] << std::endl; |
| 341 | CHECK_GL_ERROR(); |
| 342 | } |
| 343 | |
| 344 | void Graphics::deleteFramebuffer(GLuint* fb) { |
| 345 | if (*fb != (GLuint)INVALID_FRAMEBUFFER) { |
no outgoing calls
no test coverage detected