Windows: Fix up WindowsContextImplementation.nSetSwapInterval

This commit is contained in:
Elias Naur 2007-05-27 15:32:25 +00:00
parent 985d0973a8
commit 6939f9170a
2 changed files with 6 additions and 5 deletions

View file

@ -97,12 +97,12 @@ final class WindowsContextImplementation implements ContextImplementation {
private static native boolean nIsCurrent(ByteBuffer context_handle) throws LWJGLException;
public void setSwapInterval(int value) {
boolean success = nSetSwapInterval(value) == GL11.GL_TRUE ? true : false;
boolean success = nSetSwapInterval(value);
if (!success)
LWJGLUtil.log("Failed to set swap interval");
Util.checkGLError();
}
private static native int nSetSwapInterval(int value);
private static native boolean nSetSwapInterval(int value);
public void destroy(PeerInfo peer_info, ByteBuffer handle) throws LWJGLException {
nDestroy(handle);