Fix: Algunas texturas desaparecen al bloquearse la pantalla

This commit is contained in:
2022-11-17 17:54:05 +01:00
parent 7af0dda1a0
commit 7d712181fc

View File

@@ -92,7 +92,7 @@ void Game::checkEventHandler()
break;
}
if (eventHandler->type == SDL_RENDER_DEVICE_RESET)
if (eventHandler->type == SDL_RENDER_DEVICE_RESET || eventHandler->type == SDL_RENDER_TARGETS_RESET)
{
reLoadTextures();
}