FIX: jogl seems to be picky about flip to limit reads
This commit is contained in:
parent
7e6833d5fd
commit
e40d7136f1
@ -319,7 +319,7 @@ public class GLUtils {
|
|||||||
public static void glDeleteBuffers(int num, int[] ids) {
|
public static void glDeleteBuffers(int num, int[] ids) {
|
||||||
IntBuffer buf = MapRenderer.getIntBuffer(num);
|
IntBuffer buf = MapRenderer.getIntBuffer(num);
|
||||||
buf.put(ids, 0, num);
|
buf.put(ids, 0, num);
|
||||||
buf.position(0);
|
buf.flip();
|
||||||
GL.glDeleteBuffers(num, buf);
|
GL.glDeleteBuffers(num, buf);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -349,7 +349,7 @@ public class GLUtils {
|
|||||||
public static void glDeleteTextures(int num, int[] ids) {
|
public static void glDeleteTextures(int num, int[] ids) {
|
||||||
IntBuffer buf = MapRenderer.getIntBuffer(num);
|
IntBuffer buf = MapRenderer.getIntBuffer(num);
|
||||||
buf.put(ids, 0, num);
|
buf.put(ids, 0, num);
|
||||||
buf.position(0);
|
buf.flip();
|
||||||
GL.glDeleteTextures(num, buf);
|
GL.glDeleteTextures(num, buf);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user