free votepatches also in ogl not just software

This commit is contained in:
Alug committed 2025-05-31 15:21:20 +02:00
1 parent 5e9168a067
commit 428f759ed5
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]);