List of usage examples for javax.microedition.khronos.opengles GL10 glDeleteTextures
void glDeleteTextures(int n, int[] textures, int offset);
From source file:Main.java
/** * Delete loaded texture.//from w w w . j a va 2 s . c om * * @param gl this method <b>must be</b> call in GL thread. * @param texID delete texture ID(the first element of array) */ public static void freeTexture(GL10 gl, int[] texID) { if (null == texID || texID.length <= 0) { return; } gl.glDeleteTextures(1, texID, 0); texID[0] = INVALID_TEXTURE_ID; }