summaryrefslogtreecommitdiff
path: root/platform/linux
diff options
context:
space:
mode:
Diffstat (limited to 'platform/linux')
-rw-r--r--platform/linux/src/headless_backend_egl.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/platform/linux/src/headless_backend_egl.cpp b/platform/linux/src/headless_backend_egl.cpp
index 87e7c1d0ed..df0ecc8dff 100644
--- a/platform/linux/src/headless_backend_egl.cpp
+++ b/platform/linux/src/headless_backend_egl.cpp
@@ -31,9 +31,6 @@ struct EGLImpl : public HeadlessBackend::Impl {
}
~EGLImpl() {
- if (glContext != eglGetCurrentContext()) {
- activateContext();
- }
if (!eglDestroyContext(display, glContext)) {
throw std::runtime_error("Failed to destroy EGL context.\n");
}