From 092213091b112ede2448c4a775505c5ffbdc9a41 Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Tue, 21 Feb 2017 11:16:28 -0800 Subject: [linux] Don't manually activate context before destroying it --- platform/default/headless_backend_osmesa.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'platform/default') 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); } -- cgit v1.2.1