mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-04 14:07:52 +00:00
Windows: Display.getVersion should return null when getAdapter() is null
This commit is contained in:
parent
72c0fc81b8
commit
502291c9cb
1 changed files with 5 additions and 1 deletions
|
|
@ -86,7 +86,11 @@ final class Win32Display implements DisplayImplementation {
|
|||
}
|
||||
|
||||
public String getVersion() {
|
||||
return nGetVersion(getAdapter());
|
||||
String driver = getAdapter();
|
||||
if (driver != null)
|
||||
return nGetVersion(driver);
|
||||
else
|
||||
return null;
|
||||
}
|
||||
private native String nGetVersion(String driver);
|
||||
public native DisplayMode init() throws LWJGLException;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue