Closed GoogleCodeExporter closed 9 years ago
The attached SVN patch resolves the issue for me:
Original comment by jason.po...@gmail.com
on 28 Dec 2009 at 9:14
Attachments:
FYI:
Grid class uses:
final int vertexSize = mVertexBuffer.capacity() * Float.SIZE;
and
final int texCoordSize = mTexCoordBuffer.capacity() * Float.SIZE;
Should be:
final int vertexSize = mVertexBuffer.capacity() * 4;
and
final int texCoordSize = mTexCoordBuffer.capacity() * 4;
Float.SIZE resolves to 32
Original comment by jason.po...@gmail.com
on 28 Dec 2009 at 9:16
Indeed. Fixed.
Original comment by sm0a...@gmail.com
on 19 Jan 2010 at 5:05
you get the 32 because it is in bits not in bytes...
Float.SIZE/Byte.SIZE does the trick,
writing 4 is more hardcoded...
Original comment by DA0.1428...@gmail.com
on 29 Dec 2012 at 4:23
Original issue reported on code.google.com by
jason.po...@gmail.com
on 28 Dec 2009 at 9:00