Skip to content Skip to sidebar Skip to footer

Vertex Shader Doesn't Run On Galaxy Tab10 (tegra 2)

I created an app that uses GLES2.0 on a HTC Desire S. It works on the HTC, but not on an Samung Galaxy tab10.1. The program cannot be linked (GLES20.glGetProgramiv(mProgram, GLES20

Solution 1:

This seems to be a limitation of the Nvidia Tegra GPU. I was able to reproduce the error on a Tegra 3 GPU. Even though texture lookups in the vertex shader are in theory part of OpenGL ES 2.0, according to Nvidia the number of vertex shader texture units (GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS) for Tegra is 0 (PDF: OpenGL ES 2.0 Development for the Tegra Platform).

Solution 2:

You have to use texture2DLod() instead of texture2D() to make texture lookups in vertex shader.

GLSL specs, section 8.7 Texture Lookup Functions: http://www.khronos.org/files/opengles_shading_language.pdf

Post a Comment for "Vertex Shader Doesn't Run On Galaxy Tab10 (tegra 2)"