From 8b5cef7ae3bc9cbafb63b5afea10496438c2749e Mon Sep 17 00:00:00 2001 From: Sotaro Ikeda Date: Sat, 11 Mar 2017 07:01:19 +0900 Subject: [PATCH] Update gleam to v0.4 --- Cargo.toml | 4 ++-- src/gl_context.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index f06f8f0..3d0f16b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "offscreen_gl_context" license = "MIT / Apache-2.0" -version = "0.8.1" +version = "0.8.2" authors = ["Emilio Cobos Álvarez ", "The Servo Project Developers"] description = "Creation and manipulation of HW accelerated offscreen rendering contexts in multiple platforms. Originally intended for the Servo project's WebGL implementation." repository = "https://github.com/emilio/rust-offscreen-rendering-context" @@ -18,7 +18,7 @@ test_egl_in_linux = [] [dependencies] log = "0.3" -gleam = "0.3" +gleam = "0.4" euclid = "0.11" serde = { version = "0.9", optional = true } osmesa-sys = { version = "0.1", optional = true } diff --git a/src/gl_context.rs b/src/gl_context.rs index 436b67b..a58ddd6 100644 --- a/src/gl_context.rs +++ b/src/gl_context.rs @@ -42,8 +42,8 @@ impl GLContext -> Result { let native_context = try!(Native::create_shared_with_dispatcher(shared_with, dispatcher)); let gl_ = match api_type { - gl::GlType::Gl => gl::GlFns::load_with(|s| Self::get_proc_address(s) as *const _), - gl::GlType::Gles => gl::GlesFns::load_with(|s| Self::get_proc_address(s) as *const _), + gl::GlType::Gl => unsafe { gl::GlFns::load_with(|s| Self::get_proc_address(s) as *const _) }, + gl::GlType::Gles => unsafe { gl::GlesFns::load_with(|s| Self::get_proc_address(s) as *const _) }, }; try!(native_context.make_current());