mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-03-29 09:34:47 +02:00
Added null check on ContextAttribs.
This commit is contained in:
parent
d924981170
commit
4acf44bd9a
|
|
@ -48,7 +48,7 @@ abstract class MacOSXPeerInfo extends PeerInfo {
|
|||
if (pixel_format.isFloatingPoint() && !LWJGLUtil.isMacOSXEqualsOrBetterThan(10, 4))
|
||||
throw new LWJGLException("Floating point pixel format requested, but it requires MacOS X 10.4 or newer");
|
||||
|
||||
boolean gl32 = attribs.getMajorVersion() == 3 && attribs.getMinorVersion() == 2 && attribs.isProfileCore();
|
||||
boolean gl32 = attribs != null && attribs.getMajorVersion() == 3 && attribs.getMinorVersion() == 2 && attribs.isProfileCore();
|
||||
if ( gl32 && !LWJGLUtil.isMacOSXEqualsOrBetterThan(10, 7) )
|
||||
throw new LWJGLException("OpenGL 3.2 requested, but it requires MacOS X 10.7 or newer");
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue