On 2012-11-26, Ian Romanick wrote: > There isn't one. We treat OpenGL ES 3 as version 30 of API_OPENGLES2. > There's a utility function _mesa_is_gles3 to check this. See > src/mesa/main/context.h.
Thanks for the tip. As a follow-up to this mail I'm sending two new patches with my radically simpler solution for this feature. The first patch simply adds an is_gles flag to the preprocessor's parser state, (setting it either by "api == API_OPENGLES", "#version 100", or "#version XX es"). The second patch simply adds a new error message to the grammar when converting an identifier to a value of zero, (but only if the is_gles flag is set). -Carl _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev