mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-11 17:34:00 +00:00
Mac OS X: Added a workaround for the 'white screen' problem
This commit is contained in:
parent
2cd1e740ee
commit
019a1418c6
3 changed files with 53 additions and 1 deletions
|
|
@ -81,6 +81,18 @@ final class MacOSXContextImplementation implements ContextImplementation {
|
|||
|
||||
private static native void clearDrawable(ByteBuffer handle) throws LWJGLException;
|
||||
|
||||
static void resetView(PeerInfo peer_info, Context context) throws LWJGLException {
|
||||
ByteBuffer peer_handle = peer_info.lockAndGetHandle();
|
||||
try {
|
||||
synchronized (context) {
|
||||
clearDrawable(context.getHandle());
|
||||
setView(peer_handle, context.getHandle());
|
||||
}
|
||||
} finally {
|
||||
peer_info.unlock();
|
||||
}
|
||||
}
|
||||
|
||||
public void makeCurrent(PeerInfo peer_info, ByteBuffer handle) throws LWJGLException {
|
||||
ByteBuffer peer_handle = peer_info.lockAndGetHandle();
|
||||
try {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue