aboutsummaryrefslogtreecommitdiff
path: root/sokol_app.h
diff options
context:
space:
mode:
authorJose L. Hidalgo (PpluX) <joseluis.hidalgo@gmail.com>2024-09-10 07:10:17 +0200
committerJose L. Hidalgo (PpluX) <joseluis.hidalgo@gmail.com>2024-09-10 07:10:17 +0200
commit5488c443844f193a011b766b7fb350f1beb69813 (patch)
treec7e8006c29db5a2ae6b73f3f3dfd39230f1a1ca7 /sokol_app.h
parentdf71cc24cb273c0cf68ccef91932c09893006b18 (diff)
Fixes a missing wgl destruction (SOKOL_NOAPI)
When we use SOKOL_NOAPI the cleanup of the window still was trying to destroy an opengl context.
Diffstat (limited to 'sokol_app.h')
-rw-r--r--sokol_app.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sokol_app.h b/sokol_app.h
index 790e9dec..7cd29bf8 100644
--- a/sokol_app.h
+++ b/sokol_app.h
@@ -8015,7 +8015,7 @@ _SOKOL_PRIVATE void _sapp_win32_run(const sapp_desc* desc) {
#if defined(SOKOL_D3D11)
_sapp_d3d11_destroy_default_render_target();
_sapp_d3d11_destroy_device_and_swapchain();
- #else
+ #elif defined(SOKOL_GLCORE)
_sapp_wgl_destroy_context();
_sapp_wgl_shutdown();
#endif