main.cpp: Prevent graphical corruption in-game after rendering a load/save/delete state menu.