Skip to content

Commit d8d5aba

Browse files
riccardoblCopilot
andauthored
Update jme3-android/src/main/java/com/jme3/renderer/android/AndroidGL.java
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 5434914 commit d8d5aba

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
@@ -349,9 +349,9 @@ public String glGetProgramInfoLog(int program, int maxLength) {
349349
@Override
350350
public long glGetQueryObjectui64(int query, int pname) {
351351
IntBuffer buff = (IntBuffer)tmpBuff.clear();
352-
//FIXME This is wrong IMO should be glGetQueryObjectui64v with a LongBuffer but it seems the API doesn't provide it.
352+
//FIXME This reads only 32 bits; mask to return the value as unsigned in a long.
353353
GLES30.glGetQueryObjectuiv(query, pname, buff);
354-
return buff.get(0);
354+
return buff.get(0) & 0xFFFF_FFFFL;
355355
}
356356

357357
@Override

0 commit comments

Comments
 (0)