mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03:00
Fix screenshake not clearing the gameplay cache
This commit is contained in:
committed by
Misa Elizabeth Kai
parent
19b2a317f1
commit
d9859d4a98
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user