mirror of
https://github.com/TomHarte/CLK.git
synced 2025-01-23 11:30:24 +00:00
Tidies up marginally.
This commit is contained in:
parent
b35b6b2ba8
commit
878b480a44
@ -31,12 +31,12 @@
|
||||
const auto error = glGetError(); \
|
||||
if(error) { \
|
||||
switch(error) { \
|
||||
default: std::cerr << "Error " << error;\
|
||||
case GL_INVALID_ENUM: std::cerr << "GL_INVALID_ENUM"; break; \
|
||||
case GL_INVALID_VALUE: std::cerr << "GL_INVALID_VALUE"; break; \
|
||||
case GL_INVALID_OPERATION: std::cerr << "GL_INVALID_OPERATION"; break; \
|
||||
case GL_INVALID_FRAMEBUFFER_OPERATION: std::cerr << "GL_INVALID_FRAMEBUFFER_OPERATION"; break; \
|
||||
case GL_OUT_OF_MEMORY: std::cerr << "GL_OUT_OF_MEMORY"; break; \
|
||||
default: std::cerr << "Error " << error; break; \
|
||||
case GL_INVALID_ENUM: std::cerr << "GL_INVALID_ENUM"; break; \
|
||||
case GL_INVALID_VALUE: std::cerr << "GL_INVALID_VALUE"; break; \
|
||||
case GL_INVALID_OPERATION: std::cerr << "GL_INVALID_OPERATION"; break; \
|
||||
case GL_INVALID_FRAMEBUFFER_OPERATION: std::cerr << "GL_INVALID_FRAMEBUFFER_OPERATION"; break; \
|
||||
case GL_OUT_OF_MEMORY: std::cerr << "GL_OUT_OF_MEMORY"; break; \
|
||||
}; \
|
||||
std::cerr << " at line " << __LINE__ << " in " << __FILE__ << std::endl; \
|
||||
assert(false); \
|
||||
|
Loading…
x
Reference in New Issue
Block a user