Switches to JOGL 2.1.2

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10874 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
experimental
gouessej 11 years ago
parent e3651d8f96
commit f49992d15b
  1. BIN
      engine/lib/jogl/gluegen-rt-natives-linux-amd64.jar
  2. BIN
      engine/lib/jogl/gluegen-rt-natives-linux-armv6.jar
  3. BIN
      engine/lib/jogl/gluegen-rt-natives-linux-armv6hf.jar
  4. BIN
      engine/lib/jogl/gluegen-rt-natives-linux-i586.jar
  5. BIN
      engine/lib/jogl/gluegen-rt-natives-macosx-universal.jar
  6. BIN
      engine/lib/jogl/gluegen-rt-natives-solaris-amd64.jar
  7. BIN
      engine/lib/jogl/gluegen-rt-natives-solaris-i586.jar
  8. BIN
      engine/lib/jogl/gluegen-rt-natives-windows-amd64.jar
  9. BIN
      engine/lib/jogl/gluegen-rt-natives-windows-i586.jar
  10. BIN
      engine/lib/jogl/gluegen-rt.jar
  11. BIN
      engine/lib/jogl/joal-natives-linux-amd64.jar
  12. BIN
      engine/lib/jogl/joal-natives-linux-armv6.jar
  13. BIN
      engine/lib/jogl/joal-natives-linux-armv6hf.jar
  14. BIN
      engine/lib/jogl/joal-natives-linux-i586.jar
  15. BIN
      engine/lib/jogl/joal-natives-macosx-universal.jar
  16. BIN
      engine/lib/jogl/joal-natives-solaris-amd64.jar
  17. BIN
      engine/lib/jogl/joal-natives-solaris-i586.jar
  18. BIN
      engine/lib/jogl/joal-natives-windows-amd64.jar
  19. BIN
      engine/lib/jogl/joal-natives-windows-i586.jar
  20. BIN
      engine/lib/jogl/joal.jar
  21. BIN
      engine/lib/jogl/jogl-all-natives-linux-amd64.jar
  22. BIN
      engine/lib/jogl/jogl-all-natives-linux-armv6.jar
  23. BIN
      engine/lib/jogl/jogl-all-natives-linux-armv6hf.jar
  24. BIN
      engine/lib/jogl/jogl-all-natives-linux-i586.jar
  25. BIN
      engine/lib/jogl/jogl-all-natives-macosx-universal.jar
  26. BIN
      engine/lib/jogl/jogl-all-natives-solaris-amd64.jar
  27. BIN
      engine/lib/jogl/jogl-all-natives-solaris-i586.jar
  28. BIN
      engine/lib/jogl/jogl-all-natives-windows-amd64.jar
  29. BIN
      engine/lib/jogl/jogl-all-natives-windows-i586.jar
  30. BIN
      engine/lib/jogl/jogl-all.jar
  31. 6
      engine/src/jogl/com/jme3/renderer/jogl/JoglGL1Renderer.java
  32. 10
      engine/src/jogl/com/jme3/renderer/jogl/JoglRenderer.java

Binary file not shown.

Binary file not shown.

Binary file not shown.

@ -1069,13 +1069,13 @@ public class JoglGL1Renderer implements GL1Renderer {
GL gl = GLContext.getCurrentGL();
switch (format) {
case GL.GL_UNSIGNED_BYTE:
gl.glDrawElements(mode, data.limit(), format, (ByteBuffer) data);
gl.getGL2().glDrawElements(mode, data.limit(), format, (ByteBuffer) data);
break;
case GL.GL_UNSIGNED_SHORT:
gl.glDrawElements(mode, data.limit(), format, (ShortBuffer) data);
gl.getGL2().glDrawElements(mode, data.limit(), format, (ShortBuffer) data);
break;
case GL.GL_UNSIGNED_INT:
gl.glDrawElements(mode, data.limit(), format, (IntBuffer) data);
gl.getGL2().glDrawElements(mode, data.limit(), format, (IntBuffer) data);
break;
default:
throw new UnsupportedOperationException();

@ -2340,11 +2340,11 @@ public class JoglRenderer implements Renderer {
int elementLength = elementLengths[i];
if (useInstancing) {
if (gl.isGL2GL3()) {
if (gl.isGL2()) {
indexBuf.getData().position(curOffset);
indexBuf.getData().limit(curOffset + elementLength);
gl.getGL2GL3().glDrawElementsInstanced(elMode,
gl.getGL2().glDrawElementsInstanced(elMode,
elementLength,
fmt,
indexBuf.getData(),
@ -2363,7 +2363,7 @@ public class JoglRenderer implements Renderer {
curOffset);
} else {
indexBuf.getData().position(curOffset);
gl.glDrawElements(elMode, elementLength, fmt,
gl.getGL2().glDrawElements(elMode, elementLength, fmt,
indexBuf.getData());
}
}
@ -2373,8 +2373,8 @@ public class JoglRenderer implements Renderer {
}
} else {
if (useInstancing) {
if (gl.isGL2GL3()) {
gl.getGL2GL3().glDrawElementsInstanced(convertElementMode(mesh.getMode()),
if (gl.isGL2()) {
gl.getGL2().glDrawElementsInstanced(convertElementMode(mesh.getMode()),
indexBuf.getData().limit(),
convertFormat(indexBuf.getFormat()),
indexBuf.getData(),

Loading…
Cancel
Save