From 3c737a9f1663a190942ce0424ecbe706ca2d6315 Mon Sep 17 00:00:00 2001 From: Brendan Zabarauskas Date: Tue, 10 Feb 2015 20:05:18 +1100 Subject: [PATCH] Fix NSOpenGLContext init methods These are instance methods, not class methods --- src/appkit.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/appkit.rs b/src/appkit.rs index 45855d7..5b5fb3c 100644 --- a/src/appkit.rs +++ b/src/appkit.rs @@ -1341,11 +1341,11 @@ impl NSOpenGLContext for id { // Context Creation unsafe fn initWithFormat_shareContext_(self, format: id /* (NSOpenGLPixelFormat *) */, shareContext: id /* (NSOpenGLContext *) */) -> id /* (instancetype) */ { - msg_send()(class("NSOpenGLContext"), selector("initWithFormat:shareContext:"), format, shareContext) + msg_send()(self, selector("initWithFormat:shareContext:"), format, shareContext) } unsafe fn initWithCGLContextObj_(self, context: CGLContextObj) -> id /* (instancetype) */ { - msg_send()(class("NSOpenGLContext"), selector("initWithCGLContextObj:"), context) + msg_send()(self, selector("initWithCGLContextObj:"), context) } // Managing the Current Context