Fixed: Don't compress textures in DXTC when used as buttons

This commit is contained in:
kervala 2012-09-26 12:44:52 +02:00
parent 62435e4f2f
commit 2e4df39c5b

View file

@ -258,19 +258,19 @@ void CCtrlButton::updateCoords()
// ----------------------------------------------------------------------------
void CCtrlButton::setTexture(const std::string&name)
{
_TextureIdNormal.setTexture(name.c_str (), 0, 0, 0, 0, false);
_TextureIdNormal.setTexture(name.c_str (), 0, 0, -1, -1, false);
}
// ----------------------------------------------------------------------------
void CCtrlButton::setTexturePushed(const std::string&name)
{
_TextureIdPushed.setTexture(name.c_str (), 0, 0, 0, 0, false);
_TextureIdPushed.setTexture(name.c_str (), 0, 0, -1, -1, false);
}
// ----------------------------------------------------------------------------
void CCtrlButton::setTextureOver(const std::string&name)
{
_TextureIdOver.setTexture(name.c_str (), 0, 0, 0, 0, false);
_TextureIdOver.setTexture(name.c_str (), 0, 0, -1, -1, false);
}
// ----------------------------------------------------------------------------