Fix colormap mipmap memory leak on the character select in OpenGL

This commit is contained in:
Jaime Passos 2020-05-15 15:58:20 -03:00
parent 7ea005fdc1
commit 4cc0829b90

View file

@ -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
); );
} }