Fix texture wrapping mode for menuimages

This commit is contained in:
BeaR 2014-12-22 12:30:35 +01:00 committed by oy
parent be1adf7e51
commit d4a752e446

View file

@ -166,6 +166,7 @@ int CMenus::DoButton_MenuImage(const void *pID, const char *pText, int Checked,
{
Graphics()->TextureSet(pImage->m_GreyTexture);
Graphics()->WrapClamp();
Graphics()->QuadsBegin();
Graphics()->SetColor(1.0f, 1.0f, 1.0f, 1.0f);
IGraphics::CQuadItem QuadItem(Image.x, Image.y, Image.w, Image.h);
@ -175,6 +176,7 @@ int CMenus::DoButton_MenuImage(const void *pID, const char *pText, int Checked,
if(*pFade > 0.0f)
{
Graphics()->TextureSet(pImage->m_OrgTexture);
Graphics()->WrapClamp();
Graphics()->QuadsBegin();
Graphics()->SetColor(1.0f, 1.0f, 1.0f, *pFade/Seconds);
Graphics()->QuadsDrawTL(&QuadItem, 1);