From a957a88542ada1c960b2f1b17284c7d813284fc1 Mon Sep 17 00:00:00 2001 From: Gunnar Sletta Date: Wed, 17 Aug 2011 12:03:24 +0200 Subject: compile after removal of OpenGL 1 paint engine MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Idf030ef627329f940e8a1e0a2b98d49b11e8446c Reviewed-on: http://codereview.qt.nokia.com/3087 Reviewed-by: Qt Sanity Bot Reviewed-by: Samuel Rødal --- src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp | 3 ++- src/opengl/qgl.cpp | 6 ------ src/opengl/qglpixelbuffer.cpp | 7 ------- 3 files changed, 2 insertions(+), 14 deletions(-) (limited to 'src') diff --git a/src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp b/src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp index 1be243a3f9..49d6b297e4 100644 --- a/src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp +++ b/src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp @@ -2048,11 +2048,12 @@ bool QGL2PaintEngineEx::end() { Q_D(QGL2PaintEngineEx); + QGLContext *ctx = d->ctx; glUseProgram(0); d->transferMode(BrushDrawingMode); d->device->endPaint(); - d->ctx->d_ptr->active_engine = 0; + ctx->d_ptr->active_engine = 0; d->resetGLState(); diff --git a/src/opengl/qgl.cpp b/src/opengl/qgl.cpp index 25adf0bade..8ef1fc38e5 100644 --- a/src/opengl/qgl.cpp +++ b/src/opengl/qgl.cpp @@ -4394,9 +4394,6 @@ void QGLWidget::renderText(int x, int y, const QString &str, const QFont &font, return; } - // this changes what paintEngine() returns - qgl_engine_selector()->setPreferredPaintEngine(QPaintEngine::OpenGL); - engine = paintEngine(); QPainter *p; bool reuse_painter = false; if (engine->isActive()) { @@ -4495,9 +4492,6 @@ void QGLWidget::renderText(double x, double y, double z, const QString &str, con return; } - // this changes what paintEngine() returns - qgl_engine_selector()->setPreferredPaintEngine(QPaintEngine::OpenGL); - engine = paintEngine(); QPainter *p; bool reuse_painter = false; bool use_depth_testing = glIsEnabled(GL_DEPTH_TEST); diff --git a/src/opengl/qglpixelbuffer.cpp b/src/opengl/qglpixelbuffer.cpp index 8116b798ca..156c40f394 100644 --- a/src/opengl/qglpixelbuffer.cpp +++ b/src/opengl/qglpixelbuffer.cpp @@ -100,12 +100,6 @@ QT_BEGIN_NAMESPACE -#if !defined(QT_OPENGL_ES_2) -extern void qgl_cleanup_glyph_cache(QGLContext *); -#else -void qgl_cleanup_glyph_cache(QGLContext *) {} -#endif - extern Q_OPENGL_EXPORT QImage qt_gl_read_framebuffer(const QSize&, bool, bool); @@ -200,7 +194,6 @@ QGLPixelBuffer::~QGLPixelBuffer() QGLContext *current = const_cast(QGLContext::currentContext()); if (current != d->qctx) makeCurrent(); - qgl_cleanup_glyph_cache(d->qctx); d->cleanup(); delete d->qctx; if (current && current != d->qctx) -- cgit v1.2.3