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:
Fred Kiefer 2011-11-28 17:16:10 +00:00
parent 6edd461100
commit e11f1e26b3
2 changed files with 14 additions and 5 deletions

View file

@ -1,10 +1,16 @@
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.
2011-11-28 Gregory Casamento <greg.casamento@gmail.com>
2011-11-28 Gregory Casamento <greg.casamento@gmail.com>
* Source/NSTextView.m: Add code to set the default
* Source/NSTextView.m: Add code to set the default
of 5.0 in the -buildUpTextNetwork method.
* Source/NSTextContainer.m: In -lineFragmentForProposedRect:...
add _lineFragmentPadding to min and subtract from max to

View file

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