Skip to content

Commit

Permalink
Allow overriding the gl error check macro
Browse files Browse the repository at this point in the history
  • Loading branch information
danielchasehooper authored Oct 19, 2023
1 parent d98c8b9 commit d9d64a5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sokol_gfx.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

// ███████ ████████ ██████ ██ ██ ██████ ████████ ███████
Expand Down

0 comments on commit d9d64a5

Please sign in to comment.