Fix title screen crash

This commit is contained in:
Jaime Passos 2019-09-10 18:33:06 -03:00
parent f0019f2b2a
commit 347f9cda8b

View file

@ -1155,7 +1155,7 @@ void R_RenderPlayerView(player_t *player)
void R_InitHardwareMode(void) void R_InitHardwareMode(void)
{ {
HWR_AddCommands(); HWR_AddCommands();
if (gamestate == GS_LEVEL) if (gamestate == GS_LEVEL || gamestate == GS_TITLESCREEN)
{ {
HWR_SetupLevel(); HWR_SetupLevel();
HWR_PrepLevelCache(numtextures); HWR_PrepLevelCache(numtextures);