diff --git a/sokol_gfx.h b/sokol_gfx.h index decfd385c..d2d14e631 100644 --- a/sokol_gfx.h +++ b/sokol_gfx.h @@ -3994,7 +3994,9 @@ inline int sg_append_buffer(sg_buffer buf_id, const sg_range& data) { return sg_ #ifndef GL_LUMINANCE #define GL_LUMINANCE 0x1909 #endif + #ifndef _SG_GL_CHECK_ERROR #define _SG_GL_CHECK_ERROR() { SOKOL_ASSERT(glGetError() == GL_NO_ERROR); } + #endif #endif // ███████ ████████ ██████ ██ ██ ██████ ████████ ███████