Forums - GL_MAX_VERTEX_UNIFORM_COMPONENTS and GL_MAX_VERTEX_UNIFORM_VECTORS reporting incorrect value on Google Nexus 5

2 posts / 0 new
Last post
GL_MAX_VERTEX_UNIFORM_COMPONENTS and GL_MAX_VERTEX_UNIFORM_VECTORS reporting incorrect value on Google Nexus 5
Maykin53
Join Date: 20 Jul 14
Posts: 10
Posted: Mon, 2014-07-21 19:24

On Google Nexus 5 (OpenGL ES 3.0):

GL_MAX_VERTEX_UNIFORM_COMPONENTS = 1024
GL_MAX_VERTEX_UNIFORM_VECTORS = 256

However, when I try to max out the use of uniforms in a vertex shader, I get this error on compilation:
 

--From Vertex Shader
Error: uniform variables in vertex shader do not fit in 251 vectors.

Why is it suggesting 251 vectors in the error message but glGet(GL_MAX_VERTEX_UNIFORM_VECTORS) returns 256?
  • Up0
  • Down0
jhicks Moderator
Join Date: 6 Feb 14
Posts: 11
Posted: Tue, 2014-07-22 10:12

This is a known issue with the drivers as shipped on Nexus 5. This problem has been addressed in the monthly driver updates we post for developers here. Please give those drivers a try and see if they fix your issue.

  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.