mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-10 08:54:01 +00:00
Linux: Handle different GLX capabilities on different screens
This commit is contained in:
parent
165084e12d
commit
bdcb68a582
9 changed files with 277 additions and 259 deletions
|
|
@ -359,9 +359,17 @@ final class LinuxDisplay implements DisplayImplementation {
|
|||
|
||||
public int getPbufferCapabilities() {
|
||||
lockAWT();
|
||||
int caps = nGetPbufferCapabilities();
|
||||
unlockAWT();
|
||||
return caps;
|
||||
try {
|
||||
incDisplay();
|
||||
int caps = nGetPbufferCapabilities();
|
||||
decDisplay();
|
||||
return caps;
|
||||
} catch (LWJGLException e) {
|
||||
Sys.log("Exception occurred in getPbufferCapabilities: " + e);
|
||||
return 0;
|
||||
} finally {
|
||||
unlockAWT();
|
||||
}
|
||||
}
|
||||
private static native int nGetPbufferCapabilities();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue