Kenneth Graunke <kenn...@whitecape.org> writes: > The previous implementation required a flag in _mesa_glsl_parse_state > and line of code to initialize it for every version of the shading > language we intend to support. As we look to add 150, 330, 400, 410, > 420, and beyond, this gets rather unwieldy. > > This patch retains the switch statement (to reject, say, #version 111), > but removes all the bits. Code to check for ctx->API == API_OPENGL_CORE > could easily be added to the 110 and 120 cases to reject those.
Reviewed-by: Eric Anholt <e...@anholt.net>
pgpwNvW9SJB1i.pgp
Description: PGP signature
_______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev