fix compile error no ARM platforms

* and some improvements
This commit is contained in:
Eduardo Bart
2012-04-04 16:02:43 -03:00
parent 2c38dfb397
commit 53d56259c7
3 changed files with 3 additions and 7 deletions

View File

@@ -167,10 +167,6 @@ void UIWidget::drawImage(const Rect& screenCoords)
m_imageTexture->setSmooth(m_imageSmooth);
// this will increase fps when rendering larger images, like the background, and improve image quality
if(m_imageSmooth && !m_imageTexture->hasMipmaps() && g_graphics.canGenerateMipmaps())
m_imageTexture->generateMipmaps();
g_painter.setColor(m_imageColor);
g_painter.drawTextureCoords(m_imageCoordsBuffer, m_imageTexture);
}