mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-08 07:54:05 +00:00
Fixed ByteOrder of @Return ByteBuffers.
Cleaned up Drawable interface and introduced a reusable base implementation. Added support for disabling runtime function checks, buffer checks and state tracking. Activated with -Dorg.lwjgl.util.NoChecks=true
This commit is contained in:
parent
965e398053
commit
47c9991b41
18 changed files with 287 additions and 332 deletions
|
|
@ -437,8 +437,9 @@ final class WindowsDisplay implements DisplayImplementation {
|
|||
* is maximized helps some gfx cards recover from fullscreen
|
||||
*/
|
||||
try {
|
||||
if (Display.getDrawable().getContext() != null && Display.getDrawable().getContext().isCurrent())
|
||||
Display.getDrawable().getContext().makeCurrent();
|
||||
Context context = ((DrawableLWJGL)Display.getDrawable()).getContext();
|
||||
if (context != null && context.isCurrent())
|
||||
context.makeCurrent();
|
||||
} catch (LWJGLException e) {
|
||||
LWJGLUtil.log("Exception occurred while trying to make context current: " + e);
|
||||
}
|
||||
|
|
@ -973,4 +974,4 @@ final class WindowsDisplay implements DisplayImplementation {
|
|||
return "Rect: top = " + top + " bottom = " + bottom + " left = " + left + " right = " + right;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue