Commit c81d688e authored by Tomi Korpipää's avatar Tomi Korpipää
Browse files

Fixed a bug in texture image format conversion


Change-Id: Ic9da44711fbf5107ba4ad5648cb57a82d562e51c
Reviewed-by: default avatarPasi Keränen <pasi.keranen@digia.com>
Showing with 1 addition and 1 deletion
...@@ -278,9 +278,9 @@ uchar *CanvasTextureImage::convertToFormat(CanvasContext::glEnums format, bool f ...@@ -278,9 +278,9 @@ uchar *CanvasTextureImage::convertToFormat(CanvasContext::glEnums format, bool f
// Flip the image if needed // Flip the image if needed
if (m_pixelCacheFlipY != flipY) { if (m_pixelCacheFlipY != flipY) {
m_image = m_image.mirrored(false, true); m_image = m_image.mirrored(false, true);
m_glImage = m_image.convertToFormat(QImage::Format_RGBA8888);
m_pixelCacheFlipY = flipY; m_pixelCacheFlipY = flipY;
} }
m_glImage = m_image.convertToFormat(QImage::Format_RGBA8888);
// Get latest data for the conversion // Get latest data for the conversion
uchar *origPixels = m_glImage.bits(); uchar *origPixels = m_glImage.bits();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment