mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-31 22:19:44 +01:00
Fix screenshake not clearing the gameplay cache
This commit is contained in:
parent
19b2a317f1
commit
d9859d4a98
1 changed files with 7 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue