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:
Ioannis Tsakpinis 2010-04-22 23:21:48 +00:00
parent 965e398053
commit 47c9991b41
18 changed files with 287 additions and 332 deletions

View file

@ -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;
}
}
}
}