mirror of
https://github.com/TomHarte/CLK.git
synced 2026-04-20 10:17:05 +00:00
Handles the 0 return case.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user