Fix mem_arena_alloc bug in milepost, now debug overlay doesn crash, but doesn't display either (instead it flashes pretty hard, so I disabled it for now. Epilepsy warning if you re-enable it!)

This commit is contained in:
martinfouilleul 2023-06-19 17:13:56 +02:00
parent be84dbc6d1
commit 19c82cfe14
2 changed files with 3 additions and 1 deletions

@ -1 +1 @@
Subproject commit 2fe683b79d25a1b1ef7c3b1777f651358cce09ca Subproject commit d9a9215fa8a9920d22c5bf38994d17c7b9a0b831

View File

@ -540,7 +540,9 @@ void* orca_runloop(void* user)
{ {
if(event->key.code == MP_KEY_D && (event->key.mods & (MP_KEYMOD_SHIFT | MP_KEYMOD_CMD))) if(event->key.code == MP_KEY_D && (event->key.mods & (MP_KEYMOD_SHIFT | MP_KEYMOD_CMD)))
{ {
#if 0 // EPILEPSY WARNING! on windows this has a bug which causes a pretty strong stroboscopic effect
debug_overlay_toggle(&app->debugOverlay); debug_overlay_toggle(&app->debugOverlay);
#endif
} }
if(eventHandlers[G_EVENT_KEY_DOWN]) if(eventHandlers[G_EVENT_KEY_DOWN])