1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-25 22:18:30 +02:00

Fix screenshake not clearing the gameplay cache

This commit is contained in:
AllyTally 2023-01-28 21:34:33 -04:00 committed by Misa Elizabeth Kai
parent 19b2a317f1
commit d9859d4a98

View File

@ -3578,6 +3578,13 @@ void Graphics::screenshake(void)
set_render_target(gameTexture);
clear();
// Clear the gameplay texture so blackout() is actually black after a screenshake
if (game.gamestate == GAMEMODE)
{
set_render_target(gameplayTexture);
clear();
}
set_render_target(NULL);
copy_texture(tempTexture, NULL, NULL);
}