summaryrefslogtreecommitdiffstats
path: root/src/opengl/qgl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/opengl/qgl.cpp')
-rw-r--r--src/opengl/qgl.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/opengl/qgl.cpp b/src/opengl/qgl.cpp
index 64048f2..d1cf35d 100644
--- a/src/opengl/qgl.cpp
+++ b/src/opengl/qgl.cpp
@@ -4289,6 +4289,8 @@ void QGLDrawable::swapBuffers()
if (widget) {
if (widget->autoBufferSwap())
widget->swapBuffers();
+ } else if (pixmapData) {
+ pixmapData->swapBuffers();
} else {
glFlush();
}
@@ -4297,7 +4299,7 @@ void QGLDrawable::swapBuffers()
void QGLDrawable::makeCurrent()
{
if (pixmapData)
- pixmapData->beginPaint();
+ pixmapData->makeCurrent();
else if (widget)
widget->makeCurrent();
else if (buffer)
@@ -4321,7 +4323,7 @@ QGLPixmapData *QGLDrawable::copyOnBegin() const
void QGLDrawable::doneCurrent()
{
if (pixmapData)
- pixmapData->endPaint();
+ pixmapData->doneCurrent();
else if (fbo && !wasBound)
fbo->release();
}