mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Fix colormap mipmap memory leak on the character select in OpenGL
This commit is contained in:
parent
7ea005fdc1
commit
4cc0829b90
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];
|
col = Color_Opposite[charskin->prefcolor - 1][0];
|
||||||
|
|
||||||
// Make the translation colormap
|
// 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
|
// Don't render the title map
|
||||||
hidetitlemap = true;
|
hidetitlemap = true;
|
||||||
|
|
@ -9171,8 +9171,8 @@ static void M_DrawSetupChoosePlayerMenu(void)
|
||||||
{
|
{
|
||||||
V_DrawNameTag(
|
V_DrawNameTag(
|
||||||
x, y, V_CENTERNAMETAG, FRACUNIT,
|
x, y, V_CENTERNAMETAG, FRACUNIT,
|
||||||
R_GetTranslationColormap(TC_DEFAULT, curtextcolor, 0),
|
R_GetTranslationColormap(TC_DEFAULT, curtextcolor, GTC_CACHE),
|
||||||
R_GetTranslationColormap(TC_DEFAULT, curoutlinecolor, 0),
|
R_GetTranslationColormap(TC_DEFAULT, curoutlinecolor, GTC_CACHE),
|
||||||
curtext
|
curtext
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
@ -9204,8 +9204,8 @@ static void M_DrawSetupChoosePlayerMenu(void)
|
||||||
{
|
{
|
||||||
V_DrawNameTag(
|
V_DrawNameTag(
|
||||||
x, y, V_CENTERNAMETAG, FRACUNIT,
|
x, y, V_CENTERNAMETAG, FRACUNIT,
|
||||||
R_GetTranslationColormap(TC_DEFAULT, prevtextcolor, 0),
|
R_GetTranslationColormap(TC_DEFAULT, prevtextcolor, GTC_CACHE),
|
||||||
R_GetTranslationColormap(TC_DEFAULT, prevoutlinecolor, 0),
|
R_GetTranslationColormap(TC_DEFAULT, prevoutlinecolor, GTC_CACHE),
|
||||||
prevtext
|
prevtext
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
@ -9234,8 +9234,8 @@ static void M_DrawSetupChoosePlayerMenu(void)
|
||||||
{
|
{
|
||||||
V_DrawNameTag(
|
V_DrawNameTag(
|
||||||
x, y, V_CENTERNAMETAG, FRACUNIT,
|
x, y, V_CENTERNAMETAG, FRACUNIT,
|
||||||
R_GetTranslationColormap(TC_DEFAULT, nexttextcolor, 0),
|
R_GetTranslationColormap(TC_DEFAULT, nexttextcolor, GTC_CACHE),
|
||||||
R_GetTranslationColormap(TC_DEFAULT, nextoutlinecolor, 0),
|
R_GetTranslationColormap(TC_DEFAULT, nextoutlinecolor, GTC_CACHE),
|
||||||
nexttext
|
nexttext
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue