free votepatches also in ogl not just software

This commit is contained in:
Alug committed 2025-05-31 15:32:39 +02:00
1 parent a73de55f96
commit 2a95201c6d
1 file changed
-8
-8
View File
@@ -870,11 +870,6 @@ static void Y_FollowIntermission(void)
//
static void Y_UnloadData(void)
{
// In hardware mode, don't Z_ChangeTag a pointer returned by W_CachePatchName().
// It doesn't work and is unnecessary.
if (rendermode != render_soft)
return;
// unload the background patches
UNLOAD(VoteScreen.bgpatch);
UNLOAD(VoteScreen.widebgpatch);
@@ -1642,9 +1637,6 @@ static void Y_UnloadVoteData(void)
{
voteclient.loaded = false;
if (rendermode != render_soft)
return;
UNLOAD(VoteScreen.widebgpatch);
UNLOAD(VoteScreen.bgpatch);
UNLOAD(VoteScreen.cursor[0]);