private int createTexture(
     final int width, final int height, final int textureFormat, final int textureType) {
   final int[] textureIds = {0};
   GLES20.glGenTextures(1, textureIds, 0);
   GLES20.glBindTexture(GLES20.GL_TEXTURE_2D, textureIds[0]);
   GLES20.glTexParameteri(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_WRAP_S, GLES20.GL_CLAMP_TO_EDGE);
   GLES20.glTexParameteri(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_WRAP_T, GLES20.GL_CLAMP_TO_EDGE);
   GLES20.glTexParameteri(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_MAG_FILTER, GLES20.GL_LINEAR);
   GLES20.glTexParameteri(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_MIN_FILTER, GLES20.GL_LINEAR);
   GLES20.glTexImage2D(
       GLES20.GL_TEXTURE_2D,
       0,
       textureFormat,
       width,
       height,
       0,
       textureFormat,
       textureType,
       (Buffer) null);
   return textureIds[0];
 }