Skip to content

Commit 3b70ec0

Browse files
committed
Mirror image to align QImage and OpenGL texture coordinates (#151)
1 parent 29744f9 commit 3b70ec0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ImageProp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ void ImageProp::setColorMapImage(const QImage& colorMapImage)
244244
auto& texture = getTextureByName("ColorMap");
245245

246246
// Reset and assign the texture
247-
texture.reset(new QOpenGLTexture(colorMapImage));
247+
texture.reset(new QOpenGLTexture(colorMapImage.mirrored()));
248248

249249
// Create the texture if not created
250250
if (!texture->isCreated())

0 commit comments

Comments
 (0)