mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-01-18 14:40:39 +01:00
Display: Fixed a NPE when create() fails on context creation
This commit is contained in:
parent
31079a10c1
commit
7adffdb0cc
|
|
@ -277,7 +277,7 @@ public final class Display {
|
|||
return;
|
||||
}
|
||||
try {
|
||||
if (context.isCurrent()) {
|
||||
if (context != null && context.isCurrent()) {
|
||||
context.releaseDrawable();
|
||||
Context.releaseCurrentContext();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue