summaryrefslogtreecommitdiffstats
path: root/examples/opengl/hellogles3/glwindow.cpp
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <[email protected]>2024-10-02 09:57:19 +0200
committerAllan Sandfeld Jensen <[email protected]>2024-11-29 15:07:14 +0100
commit577946c1f05aaaa2a3f9682001aeb4144386b26b (patch)
treeca8d724b6411b744d6ce9e3b7d7e93386a2ed7f3 /examples/opengl/hellogles3/glwindow.cpp
parent7539b659d9ffbb3c44e45bdb7d9669a6df8915c8 (diff)
Add Qt::Orientations based flip and flipped functions
Is easier to read and more bool-trap safe. Old form header deprecated from 6.10 Fixes: QTBUG-129575 Change-Id: Id785b9ce159007ce745c04120b2112c8bb9b0802 Reviewed-by: Volker Hilsheimer <[email protected]>
Diffstat (limited to 'examples/opengl/hellogles3/glwindow.cpp')
-rw-r--r--examples/opengl/hellogles3/glwindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/opengl/hellogles3/glwindow.cpp b/examples/opengl/hellogles3/glwindow.cpp
index 921230fb445..1ff29feb8fa 100644
--- a/examples/opengl/hellogles3/glwindow.cpp
+++ b/examples/opengl/hellogles3/glwindow.cpp
@@ -144,7 +144,7 @@ void GLWindow::initializeGL()
QImage img(":/qtlogo.png");
Q_ASSERT(!img.isNull());
delete m_texture;
- m_texture = new QOpenGLTexture(img.scaled(32, 36).mirrored());
+ m_texture = new QOpenGLTexture(img.scaled(32, 36).flipped());
delete m_program;
m_program = new QOpenGLShaderProgram;