title: OpenGL ES 2.0 texture not showing on some device
body: <p>I found a 3D graphics framework for Android called <a href="http://www.rozengain.com/blog/2011/08/23/announcing-rajawali-an-opengl-es-2-0-based-3d-framework-for-android/" rel="nofollow">Rajawali</a> and I am learning how to use it. I followed the most basic tutorial which is rendering a shpere object with a 1024x512 size jpg image for the texture. It worked fine on Galaxy Nexus, but it didn't work on the Galaxy Player GB70.</p>
  
  <p>When I say it didn't work, I mean that the object appears but the texture is not rendered. Eventually, I changed some parameters that I use for the Rajawali framework when creating textures and got it to work. Here is what I found out.</p>
  
  <p>The cause was coming from where the <code>GL_TEXTURE_MIN_FILTER</code> was being set. Among the following four values</p>
  
  <pre><code>GLES20.GL_LINEAR_MIPMAP_LINEAR
  GLES20.GL_NEAREST_MIPMAP_NEAREST
  GLES20.GL_LINEAR
  GLES20.GL_NEAREST
  </code></pre>
  
  <p>the texture is only rendered when <code>GL_TEXTURE_MIN_FILTER</code> is not set to a filter using mipmap. So when <code>GL_TEXTURE_MIN_FILTER</code> is set to the last two it works.</p>
  
  <p>Now here is the what I don't understand and am curious about. When I shrink the image which I'm using as the texture to size 512x512 the <code>GL_TEXTURE_MIN_FILTER</code> settings does not matter. All four settings of the min filter works.</p>
  
  <p>So my question is, is there a requirement for the dimensions of the image when using min filter for the texture? Such as am I required to use an image that is square? Can other things such as the wrap style or the the configuration of the mag filter be a problem?</p>
  
  <p>Or does it seem like a OpenGL implementation bug of the device?</p>