mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2025-01-03 15:39:46 +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);
|
set_render_target(gameTexture);
|
||||||
clear();
|
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);
|
set_render_target(NULL);
|
||||||
copy_texture(tempTexture, NULL, NULL);
|
copy_texture(tempTexture, NULL, NULL);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue