Fix NSOpenGLContext init methods

These are instance methods, not class methods
This commit is contained in:
Brendan Zabarauskas
2015-02-10 20:05:18 +11:00
parent fa61633a8b
commit 3c737a9f16
+2 -2
View File
@@ -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