From b25c1e8452ecffa70b4b75fdb579f08187b36a63 Mon Sep 17 00:00:00 2001 From: Assam Boudjelthia Date: Sun, 24 Aug 2025 02:57:01 +0300 Subject: Android: split and rename checkNativeSurface() This function is doing more than what's obvious from the name, it checks if the surface has been created and creates the egl surface and then calls sendExpose(). This splits and renamed to one call for checking if the surface, then sendExpose() is moved to the existing createEgl(). Pick-to: 6.10 Change-Id: Ie15123324fca68df4a66c386916f13d691ac66c6 Reviewed-by: Ville Voutilainen --- src/plugins/platforms/android/qandroidplatformopenglcontext.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/plugins/platforms/android/qandroidplatformopenglcontext.cpp') diff --git a/src/plugins/platforms/android/qandroidplatformopenglcontext.cpp b/src/plugins/platforms/android/qandroidplatformopenglcontext.cpp index 00b2af18b3a..a6cc706785e 100644 --- a/src/plugins/platforms/android/qandroidplatformopenglcontext.cpp +++ b/src/plugins/platforms/android/qandroidplatformopenglcontext.cpp @@ -34,7 +34,8 @@ void QAndroidPlatformOpenGLContext::swapBuffers(QPlatformSurface *surface) // by Android window->lockSurface(); - if (window->checkNativeSurface(eglConfig())) { + if (window->makeCurrentNeeded()) { + window->createEgl(eglConfig()); // Call base class implementation directly since we are already locked QEGLPlatformContext::makeCurrent(surface); } -- cgit v1.2.3