Dimitry, 2009/8/5 Dmitry.Skiba <[email protected]>: > > should be > > ByteBuffer vbb = ByteBuffer.allocate(vertices.length*4); > vbb.order(ByteOrder.nativeOrder()); > for (int vertex: vertices) { > mVertexBuffer.putInt(vertex); > } > mVertexBuffer.position(0);
Where are you getting mVertexBuffer from? ByteBuffer mVertexBuffer = ByteBuffer.allocate(vertices.length*4); ? I tried switching to allocate from allocateDirect, but it crashes :-( If you are using integers in your vertex buffer, how are you setting up the vertex pointer? Thanks Paul. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

