Commit OpenGL patch by Julian Mayer <julian@corecode.at>.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@34226 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
fredkiefer 2011-11-28 17:16:10 +00:00
parent 2a1648b4e3
commit 906908d0a2
2 changed files with 14 additions and 5 deletions

View file

@ -1,3 +1,9 @@
2011-11-28 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSOpenGLView.m (-_frameChanged:): Don't send -reshape
before -prepareOpenGL.
Patch by Julian Mayer <julian@corecode.at>.
2011-11-28 Fred Kiefer <FredKiefer@gmx.de>
* Headers/AppKit/AppKit.h: Add NSColorSpace.h. This fixes bug #34913.

View file

@ -212,9 +212,12 @@ static NSOpenGLPixelFormatAttribute attrs[] =
- (void) _frameChanged: (NSNotification *) aNot
{
if (prepared)
{
[[self openGLContext] makeCurrentContext];
[self update];
[self reshape];
}
}
/* FIXME: this should be done in [lockFocus] or [lockFocusInRect:].