Fix NSOpenGLContext init methods
These are instance methods, not class methods
This commit is contained in:
+2
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user