use any (direct) ByteBuffer
This commit is contained in:
parent
ee054d1bf9
commit
ed329aac52
@ -15,7 +15,7 @@
|
||||
|
||||
package org.oscim.renderer;
|
||||
|
||||
import java.nio.ShortBuffer;
|
||||
import java.nio.Buffer;
|
||||
|
||||
import android.opengl.GLES20;
|
||||
import android.util.Log;
|
||||
@ -39,7 +39,7 @@ public final class BufferObject {
|
||||
|
||||
int bufferType;
|
||||
|
||||
public void loadBufferData(ShortBuffer buf, int newSize, int type) {
|
||||
public void loadBufferData(Buffer buf, int newSize, int type) {
|
||||
boolean clear = false;
|
||||
|
||||
if (type != bufferType) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user