ESC crashes the game?

I compile the code and press ESC instinctively to exit, it crashes immediately. In release build, it break on line 2364 in handmade_opengl.cpp

What happened here?

Edited by Mevius on Reason: Initial post
@areriff,

I was able to reproduce this. Pressing the ESC key will end up destroying the hero in the brain logic. Later, in UpdateAndRenderWorld, if no heroes exist then PlayTitleScreen is called. PlayTitleSceen ends up freeing the memory_arena's data (via SetGameMode). At this point there is still a render_entry_lighting_transfer entry on the command queue, albeit with corrupted data. When OpenGLRenderCommands attempts to read that data the program crashes.

Not sure if this is a known bug or not.

~x13pixels