Merge pull request #4787 from jherico/flipped_icons

Fix inverted icons
This commit is contained in:
Stephen Birarda 2015-05-06 20:25:43 -04:00
commit e3490838de

View file

@ -294,7 +294,7 @@ GLuint TextureCache::getShadowDepthTextureID() {
/// Returns a texture version of an image file
gpu::TexturePointer TextureCache::getImageTexture(const QString & path) {
QImage image(path);
QImage image = QImage(path).mirrored(false, true);
gpu::Element formatGPU = gpu::Element(gpu::VEC3, gpu::UINT8, gpu::RGB);
gpu::Element formatMip = gpu::Element(gpu::VEC3, gpu::UINT8, gpu::RGB);
if (image.hasAlphaChannel()) {