Code example for GL11

Methods: glDeleteBuffers

0
		if (mUseHardwareBuffers) {
			if (gl instanceof GL11) {
				GL11 gl11 = (GL11) gl;
				int[] buffer = new int[1];
				buffer[0] = mVertBufferIndex;
				gl11.glDeleteBuffers(1, buffer, 0);
 
				buffer[0] = mTextureCoordBufferIndex;
				gl11.glDeleteBuffers(1, buffer, 0);
 
				buffer[0] = mIndexBufferIndex;
				gl11.glDeleteBuffers(1, buffer, 0);
			} 
 
			invalidateHardwareBuffers(); 
		} 
	} 
 
	/** 
	 * Allocates hardware buffers on the graphics card and fills them with data 
	 * if a buffer has not already been previously allocated. Note that this