Note that there are some explanatory texts on larger screens.

plurals
  1. POWhite OpenGL ES 1 pot textures on Galaxy Nexus
    primarykey
    data
    text
    <p>It seems my power-of-2 textures show up completely white. This application works on various devices, even Nexus 7 but Galaxy Nexus phone seems to produce white textures. This is probably related to PowerVR gpu.</p> <p>I can interact with the app, everything seems in-place but the textures aren't rendering.</p> <p>I've tried various <code>EGLConfig</code>s and it seems that nothing works.</p> <p>Here is how I generate my textures, notice no mipmaps:</p> <pre><code>glGenTextures( 1, &amp;TextureId ); glBindTexture( GL_TEXTURE_2D, TextureId ); glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); glTexParameterf( GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR ); glTexImage2D(GL_TEXTURE_2D,0,GL_RGBA,Width,Height,0,GL_RGBA,GL_UNSIGNED_BYTE,Data); </code></pre> <p>Also, <code>GL_TEXTURE_2D</code> is enabled. </p> <ul> <li>Textures are all power of 2 (64x512,1024x1024 etc).</li> <li>None of the textures exceed 1024x1024 even though device supports 2048x2048</li> <li>There are no <code>glError()</code>s and no <code>eglError()</code>s.</li> <li>Color works and I can interact with my app</li> <li>There are no errors with <code>eglMakeCurrent</code> or <code>eglCreateContext</code></li> <li>Works on all other devices I've tried with (emulator,Nexus 7(Tegra),Sony Xperia 10(Adreno 200),Galaxy S2(Mali GPU))</li> <li>I use interleaved VBO for drawing</li> <li><code>glEnable(GL_TEXTURE_2D);</code> is set</li> <li>Assets are placed in the assets folder</li> <li>All OpenGL operations occur on the same context and thread</li> </ul> <p><strong>UPDATE: <code>glGenTextures()</code> returns huge numbers.</strong></p> <p>Rolling a <strong>custom texture iterator, I was able to get it working</strong>. I would still like to figure out why glGenTextures doesn't work. Here is the code:</p> <pre><code>GLuint TextureId; glGenTextures( 1, &amp;TextureId ); </code></pre> <p><code>TextureId</code> can be in billions. This only happens on Nexus Phone, all of the other devices gave me correct texture ids (1,2,3,4,etc..)</p> <p>Any suggestions?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload