diff options
Diffstat (limited to 'examples/opengl/hellogl_es2/glwidget.cpp')
-rw-r--r-- | examples/opengl/hellogl_es2/glwidget.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/opengl/hellogl_es2/glwidget.cpp b/examples/opengl/hellogl_es2/glwidget.cpp index 7267cfd124..733475d321 100644 --- a/examples/opengl/hellogl_es2/glwidget.cpp +++ b/examples/opengl/hellogl_es2/glwidget.cpp @@ -171,6 +171,8 @@ void GLWidget::paintTexturedCube() void GLWidget::initializeGL () { + initializeOpenGLFunctions(); + glClearColor(0.1f, 0.1f, 0.2f, 1.0f); glGenTextures(1, &m_uiTexture); |