Hello....
I'm trying to use the glPolygonStipple(java.nio.ByteBuffer mask), but i can't make it run, every time I get the error:
java.lang.IllegalArgumentException: Number of remaining buffer elements is 4, must be at least 1024
What am I doing wrong?
byte fly[] = {
(byte)0x10, (byte)0x00, (byte)0x00, (byte)0x08};
ByteBuffer temp = ByteBuffer.allocateDirect(12);
temp.order(ByteOrder.nativeOrder());
GL11.glPolygonStipple ((ByteBuffer)temp.put(fly).flip());