title: android opengl GLUtil.texImage2d
body: <p>i hava a bmp size =512*512,and now i want to use it to render a surface
  since the surface is not plain, i cut the surface into small piece of rectangle(num = rowMax * colMax), the code like this:</p>
  
  <pre><code>draw(GL10 gl)
  {  
    int[] textures = new int[];
    gl.glBindTexture(...);
    gl.glTxtParameterf(...);
  
   for(int row =0; row&lt; maxRow; row++)
   {
     for(int col=0; col&lt;maxCol; col++
    { 
       GLUtil.texImage2D(GL10.GL_TEXTURE_2D , bitmap,0 );// bitmap is the 512*512 bmp
      //generate 4 point coordinate
      ...
  
      //generate texture uv coordinate 
      ...
      //draw it
     gl.glDrawArray(...);    
      }  
    }
  </code></pre>
  
  <p>}
  it works fine.</p>
  
  <p>but when i take the statement:<br>
  GLUtil.texImage2D(GL10.GL_TEXTURE_2D , bitmap,0 );
  out of the loop,(since i think this may take a lot of time )
  it doesn't work,i don't know w</p>
  
  <p>}</p>