diff options
author | Sven Gothel <[email protected]> | 2012-10-16 16:35:59 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2012-10-16 16:35:59 +0200 |
commit | bf55e843dba2f8808817e756ccce0ea49c4d45b5 (patch) | |
tree | aaea7a8a1256fbc78b9f3040d7f33a572a8c072b /src/jake2/qcommon | |
parent | 0e0ab268b810371828f23d9e5f6be46a3c8a081f (diff) |
Fix QGL for ES1/ES2: Use ushort indices, since uint is n/a on ES1/ES2 profile
glDrawElements(int mode, IntBuffer indices) -> glDrawElements(int mode, ShortBuffer indices)
Diffstat (limited to 'src/jake2/qcommon')
-rw-r--r-- | src/jake2/qcommon/qfiles.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/jake2/qcommon/qfiles.java b/src/jake2/qcommon/qfiles.java index 67271df..11d5e6d 100644 --- a/src/jake2/qcommon/qfiles.java +++ b/src/jake2/qcommon/qfiles.java @@ -280,9 +280,9 @@ public class qfiles { * new members for vertex array handling */ public FloatBuffer textureCoordBuf = null; - public IntBuffer vertexIndexBuf = null; + public ShortBuffer vertexIndexBuf = null; public int[] counts = null; - public IntBuffer[] indexElements = null; + public ShortBuffer[] indexElements = null; } /* |