mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-05 14:35:58 +00:00
Windows: Fix up WindowsContextImplementation.nSetSwapInterval
This commit is contained in:
parent
985d0973a8
commit
6939f9170a
2 changed files with 6 additions and 5 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue