summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/mirclient/qmirclientglcontext.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/platforms/mirclient/qmirclientglcontext.cpp')
-rw-r--r--src/plugins/platforms/mirclient/qmirclientglcontext.cpp14
1 files changed, 1 insertions, 13 deletions
diff --git a/src/plugins/platforms/mirclient/qmirclientglcontext.cpp b/src/plugins/platforms/mirclient/qmirclientglcontext.cpp
index bbd7f5ee75..e1e7727486 100644
--- a/src/plugins/platforms/mirclient/qmirclientglcontext.cpp
+++ b/src/plugins/platforms/mirclient/qmirclientglcontext.cpp
@@ -140,19 +140,7 @@ void QMirClientOpenGLContext::swapBuffers(QPlatformSurface* surface)
ASSERT(eglSwapBuffers(mEglDisplay, eglSurface) == EGL_TRUE);
#endif
- // "Technique" copied from mir, in examples/eglapp.c around line 96
- EGLint newBufferWidth = -1;
- EGLint newBufferHeight = -1;
- /*
- * Querying the surface (actually the current buffer) dimensions here is
- * the only truly safe way to be sure that the dimensions we think we
- * have are those of the buffer being rendered to. But this should be
- * improved in future; https://bugs.launchpad.net/mir/+bug/1194384
- */
- eglQuerySurface(mEglDisplay, eglSurface, EGL_WIDTH, &newBufferWidth);
- eglQuerySurface(mEglDisplay, eglSurface, EGL_HEIGHT, &newBufferHeight);
-
- ubuntuWindow->onBuffersSwapped_threadSafe(newBufferWidth, newBufferHeight);
+ ubuntuWindow->onSwapBuffersDone();
}
void (*QMirClientOpenGLContext::getProcAddress(const QByteArray& procName)) ()