mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-11 09:23:59 +00:00
Mac OS X: Fixed flickering caused by the new context handling in AWTGLCanvas
This commit is contained in:
parent
548fc1df71
commit
aedb5ad912
6 changed files with 29 additions and 7 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue