Fixes a compile error in the unified renderer of the JOGL backend, doesn't rely on the auto-boxing

experimental
Julien Gouesse 9 years ago
parent 2631684b3d
commit fae50fd36e
  1. 4
      jme3-jogl/src/main/java/com/jme3/renderer/jogl/JoglGLExt.java

@ -78,11 +78,11 @@ public class JoglGLExt implements GLExt {
@Override
public int glClientWaitSync(Object sync, int flags, long timeout) {
return GLContext.getCurrentGL().getGL3ES3().glClientWaitSync((long) sync, flags, timeout);
return GLContext.getCurrentGL().getGL3ES3().glClientWaitSync(((Long) sync).longValue(), flags, timeout);
}
@Override
public void glDeleteSync(Object sync) {
GLContext.getCurrentGL().getGL3ES3().glDeleteSync((long) sync);
GLContext.getCurrentGL().getGL3ES3().glDeleteSync(((Long) sync).longValue());
}
}

Loading…
Cancel
Save