diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2017-02-21 11:16:28 -0800 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2017-02-22 09:27:32 -0800 |
commit | 092213091b112ede2448c4a775505c5ffbdc9a41 (patch) | |
tree | 528b8e5e5c0641214d7c4a5e7d23b94b25947106 | |
parent | 5b24b1474187807b46de2e4c4fb587bcdee4d1ea (diff) | |
download | qtlocation-mapboxgl-092213091b112ede2448c4a775505c5ffbdc9a41.tar.gz |
[linux] Don't manually activate context before destroying it
-rw-r--r-- | platform/default/headless_backend_osmesa.cpp | 3 | ||||
-rw-r--r-- | platform/linux/src/headless_backend_egl.cpp | 3 |
2 files changed, 0 insertions, 6 deletions
diff --git a/platform/default/headless_backend_osmesa.cpp b/platform/default/headless_backend_osmesa.cpp index 081bddf170..8ec6079bd0 100644 --- a/platform/default/headless_backend_osmesa.cpp +++ b/platform/default/headless_backend_osmesa.cpp @@ -12,9 +12,6 @@ struct OSMesaImpl : public HeadlessBackend::Impl { } ~OSMesaImpl() { - if (glContext != OSMesaGetCurrentContext()) { - activateContext(); - } OSMesaDestroyContext(glContext); } 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"); } |