Bugzilla – Attachment 786 Details for
Bug 1299
warning when using JOGL on Mac OS X El Capitan
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
Log In
[x]
|
Forgot Password
Login:
[x]
patch 01 to fix the issue
bug1299.fix1.diff (text/plain), 1.19 KB, created by
Sven Gothel
on 2016-05-12 06:00:38 CEST
(
hide
)
Description:
patch 01 to fix the issue
Filename:
MIME Type:
Creator:
Sven Gothel
Created:
2016-05-12 06:00:38 CEST
Size:
1.19 KB
patch
obsolete
>diff --git a/src/nativewindow/native/macosx/OSXmisc.m b/src/nativewindow/native/macosx/OSXmisc.m >index ce4a3b7..80ddee4 100644 >--- a/src/nativewindow/native/macosx/OSXmisc.m >+++ b/src/nativewindow/native/macosx/OSXmisc.m >@@ -336,6 +336,7 @@ JNIEXPORT jlong JNICALL Java_jogamp_nativewindow_macosx_OSXUtil_CreateNSWindow0 > (JNIEnv *env, jclass unused, jint x, jint y, jint width, jint height) > { > NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init]; >+ [CATransaction begin]; > NSRect rect = NSMakeRect(x, y, width, height); > > // Allocate the window >@@ -365,6 +366,7 @@ NS_ENDHANDLER > // [myView lockFocus]; > // [myView unlockFocus]; > >+ [CATransaction commit]; > [pool release]; > > return (jlong) ((intptr_t) myWindow); >@@ -379,9 +381,12 @@ JNIEXPORT void JNICALL Java_jogamp_nativewindow_macosx_OSXUtil_DestroyNSWindow0 > (JNIEnv *env, jclass unused, jlong nsWindow) > { > NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init]; >- NSWindow* mWin = (NSWindow*) ((intptr_t) nsWindow); >+ [CATransaction begin]; > >+ NSWindow* mWin = (NSWindow*) ((intptr_t) nsWindow); > [mWin close]; // performs release! >+ >+ [CATransaction commit]; > [pool release]; > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 1299
:
775
| 786