1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-12-25 18:30:21 +00:00

Handles the 0 return case.

This commit is contained in:
Thomas Harte 2019-02-18 21:56:49 -05:00
parent 3979faf43b
commit e0751af56d

View File

@ -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;
}
}
}