aboutsummaryrefslogtreecommitdiffstats
path: root/src/android
diff options
context:
space:
mode:
authortomaka <pierre.krieger1708@gmail.com>2015-02-18 09:27:21 +0100
committertomaka <pierre.krieger1708@gmail.com>2015-02-18 09:27:21 +0100
commit8f8c1b71bcb8a41d15f421602fb61b293f62f175 (patch)
treef4a90259d19b97501b11785067d3686e228b4597 /src/android
parenteb330030de6d74c04b870f51351db0e67676f311 (diff)
parentba7f2a923f769af0d566da2397e7649f57c251f1 (diff)
downloadglutin-8f8c1b71bcb8a41d15f421602fb61b293f62f175.tar.gz
glutin-8f8c1b71bcb8a41d15f421602fb61b293f62f175.zip
Merge pull request #280 from tomaka/win32-destroy
Don't call MakeCurrent(null, null) when destroying
Diffstat (limited to 'src/android')
-rw-r--r--src/android/mod.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/android/mod.rs b/src/android/mod.rs
index 5f05300..ea93040 100644
--- a/src/android/mod.rs
+++ b/src/android/mod.rs
@@ -358,8 +358,9 @@ impl Drop for Window {
use std::ptr;
unsafe {
+ // we don't call MakeCurrent(0, 0) because we are not sure that the context
+ // is still the current one
android_glue::write_log("Destroying gl-init window");
- ffi::egl::MakeCurrent(self.display, ptr::null(), ptr::null(), ptr::null());
ffi::egl::DestroySurface(self.display, self.surface);
ffi::egl::DestroyContext(self.display, self.context);
ffi::egl::Terminate(self.display);