diff --git a/Outputs/OpenGL/Primitives/TextureTarget.cpp b/Outputs/OpenGL/Primitives/TextureTarget.cpp index 21d0f093a..02aac2ed5 100644 --- a/Outputs/OpenGL/Primitives/TextureTarget.cpp +++ b/Outputs/OpenGL/Primitives/TextureTarget.cpp @@ -63,7 +63,11 @@ TextureTarget::TextureTarget(GLsizei width, GLsizei height, GLenum texture_unit, case GL_FRAMEBUFFER_UNSUPPORTED: throw std::runtime_error("GL_FRAMEBUFFER_UNSUPPORTED"); default: - throw std::runtime_error("Framebuffer status incomplete; " + std::to_string(framebuffer_status)); + throw std::runtime_error("Framebuffer status incomplete: " + std::to_string(framebuffer_status)); + + case 0: + test_gl_error(); + break; } } }