232233234235236237238239240241242
tmpHandle.clear(); tmpHandle.put(bufferHandle); tmpHandle.flip(); GL20 gl = Gdx.gl20; gl.glBindBuffer(GL20.GL_ARRAY_BUFFER, 0); gl.glDeleteBuffers(1, tmpHandle); bufferHandle = 0; } /** Returns the VBO handle * @return the VBO handle */
224225226227228229230231232233
tmpHandle.clear(); tmpHandle.put(bufferHandle); tmpHandle.flip(); GL20 gl = Gdx.gl20; gl.glBindBuffer(GL20.GL_ARRAY_BUFFER, 0); gl.glDeleteBuffers(1, tmpHandle); bufferHandle = 0; BufferUtils.disposeUnsafeByteBuffer(byteBuffer); } }