From 65db25dd9d5b5672c3e968d038dd5bd0356aa904 Mon Sep 17 00:00:00 2001 From: Imanol Fernandez Date: Fri, 20 Oct 2017 13:52:59 +0200 Subject: [PATCH] Fix "not_implemented" platform compilation --- src/platform/not_implemented/native_gl_context.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/platform/not_implemented/native_gl_context.rs b/src/platform/not_implemented/native_gl_context.rs index e82dc7f..f7b35cd 100644 --- a/src/platform/not_implemented/native_gl_context.rs +++ b/src/platform/not_implemented/native_gl_context.rs @@ -1,4 +1,6 @@ +use gleam::gl; use NativeGLContextMethods; +use GLVersion; pub struct NativeGLContext; pub struct NativeGLContextHandle; @@ -10,7 +12,9 @@ impl NativeGLContextMethods for NativeGLContext { 0 as *const () } - fn create_shared(_with: Option<&Self::Handle>) -> Result { + fn create_shared(_with: Option<&Self::Handle>, + _api_type: &gl::GlType, + _api_version: GLVersion) -> Result { Err("Not implemented (yet)") }