Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow overriding the gl error check macro #919

Merged
merged 1 commit into from
Oct 20, 2023

Conversation

danielchasehooper
Copy link
Contributor

Our project had horrible development performance due to all of sokol's glGetError calls (that function is super slow in chromium), this PR allows us to disable sokol's gl error checks, while leaving all of sokols asserts enabled for development. At the end of the frame we assert(glGetError()==0) as a sanity check. if that assert ever gets triggered, we can re-enable sokol's default _SG_GL_CHECK_ERROR definition for debugging

@floooh floooh merged commit 31f3dfc into floooh:master Oct 20, 2023
23 checks passed
@floooh
Copy link
Owner

floooh commented Oct 20, 2023

Makes sense, yeah. Thanks!

@danielchasehooper danielchasehooper deleted the patch-1 branch October 21, 2023 01:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants