From d33f6917432c0434bea168ae8a192919129c0104 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20Valor=20Mart=C3=ADnez?= Date: Thu, 17 Nov 2022 16:04:03 +0100 Subject: [PATCH] Fix: Algunas texturas desaparecen al bloquearse la pantalla --- source/game.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/game.cpp b/source/game.cpp index 32214c7..f7a27f4 100644 --- a/source/game.cpp +++ b/source/game.cpp @@ -92,6 +92,11 @@ void Game::checkEventHandler() break; } + if (eventHandler->type == SDL_RENDER_DEVICE_RESET) + { + reLoadTextures(); + } + if ((eventHandler->type == SDL_KEYDOWN) and (eventHandler->key.repeat == 0)) { switch (eventHandler->key.keysym.scancode)