diff options
author | Paul Berry <[email protected]> | 2013-02-05 15:07:26 -0800 |
---|---|---|
committer | Paul Berry <[email protected]> | 2013-02-12 08:06:35 -0800 |
commit | f8426eea35e2e08797cdd29fc295720514081988 (patch) | |
tree | 7bb3796701db60ba7f6aabee5e0deca2982ffb4d /src/gallium | |
parent | 9870459522c50d7890ce114b03fe78020edd5d2a (diff) |
glsl: Fix unsupported version error for GLSL ES 3.00, future proof for 3.30.
When the user specifies an unsupported GLSL version,
_mesa_glsl_parse_state::process_version_directive() nicely gives them
an error message telling them which GLSL versions are supported.
Previous to this patch, the logic for determining whether a given
language version was supported was independent from the logic to
generate this error message string; as a result, we had a bug where
GLSL 3.00 would never be listed in the error message as an available
language version, even if it was really available.
To make matters worse, the code for generating the error message
string assumed that desktop GL versions were always separated by 0.10,
an assumption that will be wrong as soon as we support GLSL 3.30.
This patch fixes both problems by adding a table of supported GLSL
versions to _mesa_glsl_parse_state; this table is used both to
generate the error message and to check whether a given version is
supported.
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/gallium')
0 files changed, 0 insertions, 0 deletions