GL15.glBufferData(target, (DoubleBuffer)data, usage);\r
else if (data instanceof ShortBuffer) //\r
GL15.glBufferData(target, (ShortBuffer)data, usage);\r
+ else if (data == null )\r
+ GL15.glBufferData(target, size, usage);\r
}\r
\r
- public void glBufferSubData (int target, int offset, int size, Buffer data) {\r
+ public void glBufferSubData (int target, int offset, int size, Buffer data) { \r
if (data instanceof ByteBuffer)\r
GL15.glBufferSubData(target, offset, (ByteBuffer)data);\r
else if (data instanceof IntBuffer)\r