mirror of
https://github.com/gnustep/libs-back.git
synced 2025-05-31 01:11:00 +00:00
Merge back with main branch
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/branches/gnustep_testplant_branch@35814 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
aae0f7748c
commit
25d6855dc0
1 changed files with 22 additions and 1 deletions
|
@ -284,6 +284,13 @@ static Win32GLContext *currentGLContext;
|
|||
}
|
||||
}
|
||||
|
||||
- (void *)CGLContextObj
|
||||
{
|
||||
// FIXME: Until we have a wrapper library
|
||||
// return the underlying context directly
|
||||
return (void*)wgl_context;
|
||||
}
|
||||
|
||||
- (void)clearDrawable
|
||||
{
|
||||
[self _detach];
|
||||
|
@ -327,7 +334,21 @@ static Win32GLContext *currentGLContext;
|
|||
}
|
||||
|
||||
|
||||
- (id)initWithFormat:(NSOpenGLPixelFormat *)aFormat
|
||||
- (id)initWithCGLContextObj: (void *)context
|
||||
{
|
||||
self = [super init];
|
||||
|
||||
if (!self)
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
|
||||
// FIXME: Need to set the pixelFormat ivar
|
||||
wgl_context = context;
|
||||
return self;
|
||||
}
|
||||
|
||||
- (id)initWithFormat:(NSOpenGLPixelFormat *)aFormat
|
||||
shareContext:(NSOpenGLContext *)share
|
||||
{
|
||||
NSDebugMLLog(@"WGL", @"will init with format %@", aFormat);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue