floooh / sokol

minimal cross-platform standalone C headers
https://floooh.github.io/sokol-html5
zlib License
6.82k stars 475 forks source link

Create GL context with DEBUG_BIT set when SOKOL_DEBUG is defined. #839

Closed castano closed 10 months ago

castano commented 1 year ago

This mirrors the behavior of D3D11 and allows applications to use OpenGL debug output functionality.

Note that in non-debug contexts, the OpenGL implementation may not generate messages even if debug output is enabled, so this is required for debug output to work in all cases.

Questions:

castano commented 10 months ago

Any updates about this? It'd be great to merge this to make it easier to maintain my sokol_app branch.

floooh commented 10 months ago

Thanks for the reminder. I'll try to give the PR a whirl this evening or over the weekend.

floooh commented 10 months ago

Ok, I'm not seeing any problems on my old and cheap Intel GPU laptop, guess that's a good sign ;)

Merging...

castano commented 10 months ago

Thanks!