mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-05 22:45:50 +00:00
Display: Fixed a NPE when create() fails on context creation
This commit is contained in:
parent
31079a10c1
commit
7adffdb0cc
1 changed files with 1 additions and 1 deletions
|
|
@ -277,7 +277,7 @@ public final class Display {
|
|||
return;
|
||||
}
|
||||
try {
|
||||
if (context.isCurrent()) {
|
||||
if (context != null && context.isCurrent()) {
|
||||
context.releaseDrawable();
|
||||
Context.releaseCurrentContext();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue