summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichal Klocek <michal.klocek@qt.io>2018-04-10 11:06:03 +0200
committerMichal Klocek <michal.klocek@qt.io>2018-04-17 11:56:37 +0000
commit0d4d677499a936e1e79604af39af15e098cb6eac (patch)
treec9fd70eb9dd52a197ec8bb915efbc327b10b413f
parent6a5eadd1cc11cb1233c8a3f5bac1d2911279cc40 (diff)
Do no log pbuffer creation failure as error
The pbuffer creation with egl can fail, however this is expexted if surfaceless egl is used. Task-number: QTBUG-65682 Change-Id: I0aefda0bec3d3b4943df20697b495dba83e012a7 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
-rw-r--r--src/core/gl_surface_qt.cpp1
-rw-r--r--src/core/ozone/gl_surface_egl_qt.cpp2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/core/gl_surface_qt.cpp b/src/core/gl_surface_qt.cpp
index 4e620af87..8bfbd865c 100644
--- a/src/core/gl_surface_qt.cpp
+++ b/src/core/gl_surface_qt.cpp
@@ -284,6 +284,7 @@ CreateOffscreenGLSurfaceWithFormat(const gfx::Size& size, GLSurfaceFormat format
if (surface->Initialize(format))
return surface;
}
+ LOG(ERROR) << "eglCreatePbufferSurface failed and surfaceless context not available";
LOG(WARNING) << "Failed to create offscreen GL surface";
break;
}
diff --git a/src/core/ozone/gl_surface_egl_qt.cpp b/src/core/ozone/gl_surface_egl_qt.cpp
index e4dc738aa..6de9d20b5 100644
--- a/src/core/ozone/gl_surface_egl_qt.cpp
+++ b/src/core/ozone/gl_surface_egl_qt.cpp
@@ -213,7 +213,7 @@ bool GLSurfaceEGLQt::Initialize(GLSurfaceFormat format)
g_config,
pbuffer_attributes);
if (!m_surfaceBuffer) {
- LOG(ERROR) << "eglCreatePbufferSurface failed with error " << GetLastEGLErrorString();
+ VLOG(1) << "eglCreatePbufferSurface failed with error " << GetLastEGLErrorString();
Destroy();
return false;
}