summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/xcb/qdri2context.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/platforms/xcb/qdri2context.cpp')
-rw-r--r--src/plugins/platforms/xcb/qdri2context.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/platforms/xcb/qdri2context.cpp b/src/plugins/platforms/xcb/qdri2context.cpp
index 8eef1b6111..5f4aff5455 100644
--- a/src/plugins/platforms/xcb/qdri2context.cpp
+++ b/src/plugins/platforms/xcb/qdri2context.cpp
@@ -134,9 +134,9 @@ QDri2Context::QDri2Context(QXcbWindow *window)
glFramebufferRenderbuffer(GL_FRAMEBUFFER, GL_STENCIL_ATTACHMENT, GL_RENDERER,d->depth);
//restore the old current context
- const QPlatformGLContext *currentContext = QPlatformGLContext::currentContext();
+ const QPlatformOpenGLContext *currentContext = QPlatformOpenGLContext::currentContext();
if (currentContext)
- const_cast<QPlatformGLContext*>(currentContext)->makeCurrent();
+ const_cast<QPlatformOpenGLContext*>(currentContext)->makeCurrent();
}
QDri2Context::~QDri2Context()