summaryrefslogtreecommitdiffstats
path: root/examples/opengl
diff options
context:
space:
mode:
Diffstat (limited to 'examples/opengl')
-rw-r--r--examples/opengl/cube/mainwidget.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/opengl/cube/mainwidget.cpp b/examples/opengl/cube/mainwidget.cpp
index 3aeb21ee2f..c1001cda33 100644
--- a/examples/opengl/cube/mainwidget.cpp
+++ b/examples/opengl/cube/mainwidget.cpp
@@ -173,8 +173,7 @@ void MainWidget::initShaders()
//! [4]
void MainWidget::initTextures()
{
- // Loading cube.png to texture unit 0
- glActiveTexture(GL_TEXTURE0);
+ // Loading cube.png
glEnable(GL_TEXTURE_2D);
texture = bindTexture(QImage(":/cube.png"));