[Mesa-dev] [PATCH 2/2] glcpp: Don't treat undefined macros as zero for GLES3
Carl Worth
cworth at cworth.org
Mon Nov 26 15:12:35 PST 2012
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
More information about the mesa-dev
mailing list