Mac OS X: Fixed flickering caused by the new context handling in AWTGLCanvas

This commit is contained in:
Elias Naur 2006-06-07 06:35:52 +00:00
parent 548fc1df71
commit aedb5ad912
6 changed files with 29 additions and 7 deletions

View file

@ -68,16 +68,13 @@ final class MacOSXContextImplementation implements ContextImplementation {
private static native void nUpdate(ByteBuffer context_handle);
public void releaseCurrentContext() throws LWJGLException {
Context current_context = Context.getCurrentContext();
if (current_context != null) {
synchronized (current_context) {
clearDrawable(current_context.getHandle());
}
}
nReleaseCurrentContext();
}
private static native void nReleaseCurrentContext() throws LWJGLException;
public void releaseDrawable(ByteBuffer context_handle) throws LWJGLException {
clearDrawable(context_handle);
}
private static native void clearDrawable(ByteBuffer handle) throws LWJGLException;
static void resetView(PeerInfo peer_info, Context context) throws LWJGLException {