From d79a9f2d8ce46a4a33c2ca569187bc1c19783ff6 Mon Sep 17 00:00:00 2001 From: Lars Bergstrom Date: Sat, 12 Apr 2014 19:36:20 -0500 Subject: [PATCH] Upgrade to rust --- platform/macos.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/platform/macos.rs b/platform/macos.rs index c0be46e..11c5890 100644 --- a/platform/macos.rs +++ b/platform/macos.rs @@ -51,7 +51,7 @@ impl GraphicsContext { None => CGLCreateContext(pixel_format, ptr::null(), &cgl_context), Some(ref share_context) => { let native = share_context.native(); - CGLCreateContext(pixel_format, *native.get(), &cgl_context) + CGLCreateContext(pixel_format, *native, &cgl_context) } }; assert!(gl_error == kCGLNoError); @@ -87,7 +87,7 @@ impl GraphicsContextMethods for GraphicsContext { /// Makes this context the current context. fn make_current(&self) { unsafe { - let gl_error = CGLSetCurrentContext(*self.cgl_context.get()); + let gl_error = CGLSetCurrentContext(*self.cgl_context); assert!(gl_error == kCGLNoError) } } @@ -168,7 +168,7 @@ pub fn bind_surface_to_texture(context: &GraphicsContext, surface: &IOSurface, s // FIXME: There should be safe wrappers for this. unsafe { let native = context.native(); - let gl_error = CGLTexImageIOSurface2D(*native.get(), + let gl_error = CGLTexImageIOSurface2D(*native, TEXTURE_RECTANGLE_ARB, RGBA as GLenum, size.width as GLsizei,