diff options
author | Tor Arne Vestbø <tor.arne.vestbo@digia.com> | 2013-02-06 22:36:27 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-02-17 20:31:30 +0100 |
commit | 159f42222d06acd9a7ea9b25167e52060d47ab4c (patch) | |
tree | 0c0e18cdf8ce605d147df8ac738ce0ffa07a4d75 /src/opengl/qglframebufferobject_p.h | |
parent | 3250ec0c8f9666cd3dbb724894cd529d5af51ffb (diff) |
Remove duplicated code for handling OpenGL extensions in QtOpenGL
We now re-use QOpenGLExtensions/Functions from QtGui in the same way
as QtGui uses these classes. There is still some duplicated logic
in qglfunctions.cpp, but this code now at least uses the shared
QOpenGLExtensionMatcher class.
Change-Id: Ie04008c43d430ae805e6ec1c45e7e363deeb3b8f
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@digia.com>
Diffstat (limited to 'src/opengl/qglframebufferobject_p.h')
-rw-r--r-- | src/opengl/qglframebufferobject_p.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/opengl/qglframebufferobject_p.h b/src/opengl/qglframebufferobject_p.h index 7fdf278431..64b1df5bf5 100644 --- a/src/opengl/qglframebufferobject_p.h +++ b/src/opengl/qglframebufferobject_p.h @@ -56,6 +56,7 @@ #include <qglframebufferobject.h> #include <private/qglpaintdevice_p.h> #include <private/qgl_p.h> +#include <private/qopenglextensions_p.h> QT_BEGIN_NAMESPACE @@ -148,6 +149,7 @@ public: QGLFramebufferObject::Attachment fbo_attachment; mutable QPaintEngine *engine; QGLFBOGLPaintDevice glDevice; + QOpenGLExtensions funcs; inline GLuint fbo() const { return fbo_guard ? fbo_guard->id() : 0; } }; |