mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-03-22 10:52:23 +00:00
Fix colormap mipmap memory leak on the character select in OpenGL
This commit is contained in:
parent
9d06cb4be4
commit
dd3c7aa0af
1 changed files with 7 additions and 7 deletions
14
src/m_menu.c
14
src/m_menu.c
|
@ -9095,7 +9095,7 @@ static void M_DrawSetupChoosePlayerMenu(void)
|
|||
col = Color_Opposite[charskin->prefcolor - 1][0];
|
||||
|
||||
// Make the translation colormap
|
||||
colormap = R_GetTranslationColormap(TC_DEFAULT, col, 0);
|
||||
colormap = R_GetTranslationColormap(TC_DEFAULT, col, GTC_CACHE);
|
||||
|
||||
// Don't render the title map
|
||||
hidetitlemap = true;
|
||||
|
@ -9171,8 +9171,8 @@ static void M_DrawSetupChoosePlayerMenu(void)
|
|||
{
|
||||
V_DrawNameTag(
|
||||
x, y, V_CENTERNAMETAG, FRACUNIT,
|
||||
R_GetTranslationColormap(TC_DEFAULT, curtextcolor, 0),
|
||||
R_GetTranslationColormap(TC_DEFAULT, curoutlinecolor, 0),
|
||||
R_GetTranslationColormap(TC_DEFAULT, curtextcolor, GTC_CACHE),
|
||||
R_GetTranslationColormap(TC_DEFAULT, curoutlinecolor, GTC_CACHE),
|
||||
curtext
|
||||
);
|
||||
}
|
||||
|
@ -9204,8 +9204,8 @@ static void M_DrawSetupChoosePlayerMenu(void)
|
|||
{
|
||||
V_DrawNameTag(
|
||||
x, y, V_CENTERNAMETAG, FRACUNIT,
|
||||
R_GetTranslationColormap(TC_DEFAULT, prevtextcolor, 0),
|
||||
R_GetTranslationColormap(TC_DEFAULT, prevoutlinecolor, 0),
|
||||
R_GetTranslationColormap(TC_DEFAULT, prevtextcolor, GTC_CACHE),
|
||||
R_GetTranslationColormap(TC_DEFAULT, prevoutlinecolor, GTC_CACHE),
|
||||
prevtext
|
||||
);
|
||||
}
|
||||
|
@ -9234,8 +9234,8 @@ static void M_DrawSetupChoosePlayerMenu(void)
|
|||
{
|
||||
V_DrawNameTag(
|
||||
x, y, V_CENTERNAMETAG, FRACUNIT,
|
||||
R_GetTranslationColormap(TC_DEFAULT, nexttextcolor, 0),
|
||||
R_GetTranslationColormap(TC_DEFAULT, nextoutlinecolor, 0),
|
||||
R_GetTranslationColormap(TC_DEFAULT, nexttextcolor, GTC_CACHE),
|
||||
R_GetTranslationColormap(TC_DEFAULT, nextoutlinecolor, GTC_CACHE),
|
||||
nexttext
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue