Skip to main content
4 events
when toggle format what by license comment
Jul 3, 2013 at 12:34 comment added elFarto Sorry, that should have been: ByteBuffer.allocateDirect(4*x).order(ByteOrder.nativeOrder()).asFloatBuffer()
Jul 3, 2013 at 12:17 comment added elFarto How are you creating your FloatBuffer? FloatBuffer.allocate(x)? This will create a non-direct version, which is not ideal when dealing with OpenGL. To create a direct version you need to do: ByteBuffer.allocateDirect(4*x).asFloatBuffer()
Jul 3, 2013 at 7:24 vote accept Jason
Jul 3, 2013 at 7:24 history answered Jason CC BY-SA 3.0