mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-06 15:04:41 +00:00
Mac OS X: Fixed an issue where pbuffer contexts could not share with the display context.
This commit is contained in:
parent
be343cf334
commit
a9bd41f12e
5 changed files with 16 additions and 8 deletions
|
|
@ -44,7 +44,11 @@ import org.lwjgl.LWJGLException;
|
|||
*/
|
||||
final class MacOSXCanvasImplementation implements AWTCanvasImplementation {
|
||||
public PeerInfo createPeerInfo(AWTGLCanvas canvas, PixelFormat pixel_format) throws LWJGLException {
|
||||
return new MacOSXAWTGLCanvasPeerInfo(canvas, pixel_format);
|
||||
try {
|
||||
return new MacOSXAWTGLCanvasPeerInfo(canvas, pixel_format, true);
|
||||
} catch (LWJGLException e) {
|
||||
return new MacOSXAWTGLCanvasPeerInfo(canvas, pixel_format, false);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue