Skip to content

Commit 5434914

Browse files
authored
fix
1 parent 0d3be6c commit 5434914

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

jme3-android/src/main/java/com/jme3/renderer/android/AndroidGL.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,15 +348,15 @@ public String glGetProgramInfoLog(int program, int maxLength) {
348348

349349
@Override
350350
public long glGetQueryObjectui64(int query, int pname) {
351-
IntBuffer buff = tmpBuff.clear();
351+
IntBuffer buff = (IntBuffer)tmpBuff.clear();
352352
//FIXME This is wrong IMO should be glGetQueryObjectui64v with a LongBuffer but it seems the API doesn't provide it.
353353
GLES30.glGetQueryObjectuiv(query, pname, buff);
354354
return buff.get(0);
355355
}
356356

357357
@Override
358358
public int glGetQueryObjectiv(int query, int pname) {
359-
IntBuffer buff = tmpBuff.clear();
359+
IntBuffer buff = (IntBuffer)tmpBuff.clear();
360360
GLES30.glGetQueryObjectuiv(query, pname, buff);
361361
return buff.get(0);
362362
}

0 commit comments

Comments
 (0)