mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-21 00:40:57 +00:00
Tidied up indentation of a few lines; added small comment
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@15880 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
20ab4fa2df
commit
1ea5e16281
1 changed files with 4 additions and 3 deletions
|
@ -29,13 +29,12 @@
|
|||
#include <AppKit/NSOpenGL.h>
|
||||
#include <AppKit/GSDisplayServer.h>
|
||||
|
||||
|
||||
@implementation NSOpenGLContext
|
||||
+ _classContext
|
||||
{
|
||||
Class glContextClass = [GSCurrentServer() glContextClass];
|
||||
|
||||
if ( glContextClass == nil )
|
||||
if (glContextClass == nil)
|
||||
{
|
||||
NSWarnMLog(@"Backend doesn't have any gl context");
|
||||
return nil;
|
||||
|
@ -51,7 +50,7 @@
|
|||
+ allocWithZone: (NSZone *) z
|
||||
{
|
||||
Class c = [self _classContext];
|
||||
if ( c )
|
||||
if (c)
|
||||
return NSAllocateObject(c, 0, z);
|
||||
else
|
||||
return nil;
|
||||
|
@ -64,6 +63,8 @@
|
|||
|
||||
+ (NSOpenGLContext *)currentContext
|
||||
{
|
||||
/* FIXME - There doesn't seem to be a way to fix the following
|
||||
* warning. */
|
||||
return [[self _classContext] currentContext];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue