From cab7e7858ae97eedc122fdfa7df082cbdb590d7c Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Mon, 18 May 2015 10:31:33 +0200 Subject: Make OpenGL legacy examples hellogl and overpainting work with Dynamic GL. Call GL functions using QOpenGLFunctions_1_1. Task-number: QTBUG-46103 Change-Id: I1cbacf9c192c17d96d96aa861bb16e2918a0c053 Reviewed-by: Laszlo Agocs --- examples/opengl/legacy/hellogl/glwidget.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'examples/opengl/legacy/hellogl/glwidget.h') diff --git a/examples/opengl/legacy/hellogl/glwidget.h b/examples/opengl/legacy/hellogl/glwidget.h index 994e38e13d..9aca4451df 100644 --- a/examples/opengl/legacy/hellogl/glwidget.h +++ b/examples/opengl/legacy/hellogl/glwidget.h @@ -42,11 +42,12 @@ #define GLWIDGET_H #include +#include class QtLogo; //! [0] -class GLWidget : public QGLWidget +class GLWidget : public QGLWidget, public QOpenGLFunctions_1_1 { Q_OBJECT -- cgit v1.2.3