GL15.glBindBuffer(GL15.GL_ARRAY_BUFFER, terrainVBO);
GL15.glBufferData(GL15.GL_ARRAY_BUFFER, dataBuffer, GL15.GL_STATIC_DRAW);
IntBuffer terrainIndexVBOBuffer = terrainVBOBuffer;
terrainIndexVBOBuffer.position(0);
GL15.glGenBuffers(terrainIndexVBOBuffer);
terrainIndexVBO = terrainIndexVBOBuffer.get(0);
ShortBuffer terrainIndicesDataBuffer = ByteBuffer.allocateDirect(terrainIndices.length*4).order(ByteOrder.nativeOrder()).asShortBuffer();
terrainIndicesDataBuffer.put(terrainIndices);