diff options
Diffstat (limited to 'platform/linux/src/headless_backend_egl.cpp')
-rw-r--r-- | platform/linux/src/headless_backend_egl.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/platform/linux/src/headless_backend_egl.cpp b/platform/linux/src/headless_backend_egl.cpp index 0784173af7..c3255ff5cd 100644 --- a/platform/linux/src/headless_backend_egl.cpp +++ b/platform/linux/src/headless_backend_egl.cpp @@ -34,12 +34,14 @@ struct EGLImpl : public HeadlessBackend::Impl { ~EGLImpl() { if (glSurface != EGL_NO_SURFACE) { if (!eglDestroySurface(display, glSurface)) { - throw std::runtime_error("Failed to destroy EGL surface.\n"); + mbgl::Log::Error(mbgl::Event::OpenGL, "eglDestroySurface() returned error 0x%04x", + eglGetError()); } glSurface = EGL_NO_SURFACE; } if (!eglDestroyContext(display, glContext)) { - throw std::runtime_error("Failed to destroy EGL context.\n"); + mbgl::Log::Error(mbgl::Event::OpenGL, "eglDestroyContext() returned error 0x%04x", + eglGetError()); } } |