summaryrefslogtreecommitdiffstats
path: root/src/opengl
diff options
context:
space:
mode:
authorSamuel Rødal <sroedal@trolltech.com>2009-06-30 12:22:42 (GMT)
committerSamuel Rødal <sroedal@trolltech.com>2009-06-30 12:22:42 (GMT)
commita50aa375477c88e688bb919cd1776be9afe4f6c3 (patch)
tree398d9fa7602d79d8f828a61e3755bd95af0c7807 /src/opengl
parent23f589030f41166ccb0b650cba83c5569787b9c4 (diff)
downloadQt-a50aa375477c88e688bb919cd1776be9afe4f6c3.zip
Qt-a50aa375477c88e688bb919cd1776be9afe4f6c3.tar.gz
Qt-a50aa375477c88e688bb919cd1776be9afe4f6c3.tar.bz2
Added missing createPixmapFilter() implementation in GL 2 engine.
Diffstat (limited to 'src/opengl')
-rw-r--r--src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp8
-rw-r--r--src/opengl/gl2paintengineex/qpaintengineex_opengl2_p.h2
2 files changed, 10 insertions, 0 deletions
diff --git a/src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp b/src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp
index 03ef8c8..6b0dc04 100644
--- a/src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp
+++ b/src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp
@@ -1622,4 +1622,12 @@ QGLEngineShaderManager *QGL2PaintEngineEx::shaderManager() const
return d->shaderManager;
}
+QPixmapFilter *QGL2PaintEngineEx::createPixmapFilter(int type) const
+{
+ const QGLContext *ctx = QGLContext::currentContext();
+ if (ctx)
+ return ctx->d_func()->createPixmapFilter(type);
+ return 0;
+}
+
QT_END_NAMESPACE
diff --git a/src/opengl/gl2paintengineex/qpaintengineex_opengl2_p.h b/src/opengl/gl2paintengineex/qpaintengineex_opengl2_p.h
index 5e15f40..6b34418 100644
--- a/src/opengl/gl2paintengineex/qpaintengineex_opengl2_p.h
+++ b/src/opengl/gl2paintengineex/qpaintengineex_opengl2_p.h
@@ -135,6 +135,8 @@ public:
QGLEngineShaderManager *shaderManager() const;
+ QPixmapFilter *createPixmapFilter(int type) const;
+
private:
Q_DISABLE_COPY(QGL2PaintEngineEx)
};