diff options
author | Tom Cooksey <thomas.cooksey@nokia.com> | 2009-11-05 13:12:55 (GMT) |
---|---|---|
committer | Tom Cooksey <thomas.cooksey@nokia.com> | 2009-11-05 13:36:19 (GMT) |
commit | 83052dc7c7ddb8169e1e5607a2fb2f9c6097c6f0 (patch) | |
tree | eaf8df85c9d29e4bc4ab0e82b62d9d961a93f421 /src/opengl/qglframebufferobject.cpp | |
parent | 9f86dcf0acaeba57728c3d51a1a6e57f8a8445b2 (diff) | |
download | Qt-83052dc7c7ddb8169e1e5607a2fb2f9c6097c6f0.zip Qt-83052dc7c7ddb8169e1e5607a2fb2f9c6097c6f0.tar.gz Qt-83052dc7c7ddb8169e1e5607a2fb2f9c6097c6f0.tar.bz2 |
Remove unnessisary QGLFBOGLPaintDevice re-implementations
Now QGLFBO doesn't do stacking, QGLPaintDevice's base implementation is
ok to use.
Reviewed-By: Trond
Diffstat (limited to 'src/opengl/qglframebufferobject.cpp')
-rw-r--r-- | src/opengl/qglframebufferobject.cpp | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/src/opengl/qglframebufferobject.cpp b/src/opengl/qglframebufferobject.cpp index 5295b6d..ddb107e 100644 --- a/src/opengl/qglframebufferobject.cpp +++ b/src/opengl/qglframebufferobject.cpp @@ -342,36 +342,6 @@ QGLContext *QGLFBOGLPaintDevice::context() const return fboContext; } -void QGLFBOGLPaintDevice::ensureActiveTarget() -{ - if (QGLContext::currentContext() != context()) - context()->makeCurrent(); - - QGLContext* ctx = const_cast<QGLContext*>(QGLContext::currentContext()); - Q_ASSERT(ctx); - const GLuint fboId = fbo->d_func()->fbo(); - if (ctx->d_func()->current_fbo != fboId) { - ctx->d_func()->current_fbo = fboId; - glBindFramebuffer(GL_FRAMEBUFFER_EXT, fboId); - } -} - -void QGLFBOGLPaintDevice::beginPaint() -{ - if (QGLContext::currentContext() != context()) - context()->makeCurrent(); - - wasBound = fbo->isBound(); - if (!wasBound) - fbo->bind(); -} - -void QGLFBOGLPaintDevice::endPaint() -{ - if (!wasBound) - fbo->release(); -} - bool QGLFramebufferObjectPrivate::checkFramebufferStatus() const { QGL_FUNCP_CONTEXT; |