Mac OS X: Fixed an issue where pbuffer contexts could not share with the display context.

This commit is contained in:
Elias Naur 2005-11-04 12:38:59 +00:00
parent be343cf334
commit a9bd41f12e
5 changed files with 16 additions and 8 deletions

View file

@ -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);
}
}
/**