From a57b8409a225ee2597768867c21774647f8e28bc Mon Sep 17 00:00:00 2001 From: Laszlo Agocs Date: Thu, 24 Apr 2014 14:36:57 +0200 Subject: Fix up examples for dynamic opengl builds MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Id311b00fe7783a3175dc1c4a38f627c78c470761 Reviewed-by: Jørgen Lind Reviewed-by: Friedemann Kleint --- examples/opengl/hellowindow/hellowindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/opengl/hellowindow') diff --git a/examples/opengl/hellowindow/hellowindow.cpp b/examples/opengl/hellowindow/hellowindow.cpp index 3b5971c0d3..b4dc4464ba 100644 --- a/examples/opengl/hellowindow/hellowindow.cpp +++ b/examples/opengl/hellowindow/hellowindow.cpp @@ -182,7 +182,7 @@ void Renderer::paintQtLogo() m_program->enableAttributeArray(vertexAttr); m_program->setAttributeArray(vertexAttr, vertices.constData()); m_program->setAttributeArray(normalAttr, normals.constData()); - glDrawArrays(GL_TRIANGLES, 0, vertices.size()); + m_context->functions()->glDrawArrays(GL_TRIANGLES, 0, vertices.size()); m_program->disableAttributeArray(normalAttr); m_program->disableAttributeArray(vertexAttr); } -- cgit v1.2.3