summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/android/qandroidplatformopenglwindow.cpp
diff options
context:
space:
mode:
authorAssam Boudjelthia <assam.boudjelthia@qt.io>2025-08-29 18:43:38 +0300
committerAssam Boudjelthia <assam.boudjelthia@qt.io>2025-09-01 21:31:58 +0300
commitbe19bdc7eff028aa5461d698de0b79fb4627526b (patch)
tree7e61c5187db4d1134a39388c5a141f99a44eab29 /src/plugins/platforms/android/qandroidplatformopenglwindow.cpp
parent9ddf467544fd91b72bb12b66e7a3dd80a2121c43 (diff)
Android: rename m_surfaceCreated to m_androidSurfaceCreated
This would make it clear that the boolean is tracking the Android surface (QtSurface) and not the egl surface. Pick-to: 6.10 Change-Id: Idd46940b9f18d7c489b0ed3ca8b64780f248bb76 Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'src/plugins/platforms/android/qandroidplatformopenglwindow.cpp')
-rw-r--r--src/plugins/platforms/android/qandroidplatformopenglwindow.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/platforms/android/qandroidplatformopenglwindow.cpp b/src/plugins/platforms/android/qandroidplatformopenglwindow.cpp
index 152eb288666..bb6b720e111 100644
--- a/src/plugins/platforms/android/qandroidplatformopenglwindow.cpp
+++ b/src/plugins/platforms/android/qandroidplatformopenglwindow.cpp
@@ -57,7 +57,7 @@ EGLSurface QAndroidPlatformOpenGLWindow::eglSurface(EGLConfig config)
}
// If we haven't called createSurface() yet, call it and wait until Android has created
// the Surface
- if (!m_surfaceCreated) {
+ if (!m_androidSurfaceCreated) {
static constexpr char funcName[] = "QAndroidPlatformOpenGLWindow::eglSurface()";
QtAndroidPrivate::AndroidDeadlockProtector protector(funcName);
if (!protector.acquire()) {
@@ -93,7 +93,7 @@ bool QAndroidPlatformOpenGLWindow::ensureEglSurfaceCreated(EGLConfig config)
{
// Either no surface created, or the m_eglSurface already wraps the active Surface,
// so makeCurrent is NOT needed, and we should not create a new EGL surface.
- if (!m_surfaceCreated || !m_androidSurfaceObject.isValid()) {
+ if (!m_androidSurfaceCreated || !m_androidSurfaceObject.isValid()) {
qCDebug(lcQpaWindow) << "Skipping create egl on invalid or not yet created surface";
return false;
}