Fix: Algunas texturas desaparecen al bloquearse la pantalla

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

View File

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