Skip to content

Commit

Permalink
Merge pull request #919 from danielchasehooper/patch-1
Browse files Browse the repository at this point in the history
Allow overriding the gl error check macro
  • Loading branch information
floooh authored Oct 20, 2023
2 parents d98c8b9 + d9d64a5 commit 31f3dfc
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 31f3dfc

Please sign in to comment.