summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/android/qandroidplatformopenglcontext.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/platforms/android/qandroidplatformopenglcontext.cpp')
-rw-r--r--src/plugins/platforms/android/qandroidplatformopenglcontext.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/platforms/android/qandroidplatformopenglcontext.cpp b/src/plugins/platforms/android/qandroidplatformopenglcontext.cpp
index a6cc706785e..62e9727770c 100644
--- a/src/plugins/platforms/android/qandroidplatformopenglcontext.cpp
+++ b/src/plugins/platforms/android/qandroidplatformopenglcontext.cpp
@@ -34,8 +34,7 @@ void QAndroidPlatformOpenGLContext::swapBuffers(QPlatformSurface *surface)
// by Android
window->lockSurface();
- if (window->makeCurrentNeeded()) {
- window->createEgl(eglConfig());
+ if (window->ensureEglSurfaceCreated(eglConfig())) {
// Call base class implementation directly since we are already locked
QEGLPlatformContext::makeCurrent(surface);
}