mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-31 16:20:13 +01:00
glsl: Mark _mesa_glsl_parse_state::is_version() as const.
This promises the method won't modify the contents of the object. This allows us to call it even with a const pointer to the state. Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Matt Turner <mattst88@gmail.com> Reviewed-by: Paul Berry <stereotype441@gmail.com>
This commit is contained in:
parent
4b0bac0dce
commit
d403a10573
1 changed files with 1 additions and 1 deletions
|
|
@ -113,7 +113,7 @@ struct _mesa_glsl_parse_state {
|
|||
* feature.
|
||||
*/
|
||||
bool is_version(unsigned required_glsl_version,
|
||||
unsigned required_glsl_es_version)
|
||||
unsigned required_glsl_es_version) const
|
||||
{
|
||||
unsigned required_version = this->es_shader ?
|
||||
required_glsl_es_version : required_glsl_version;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue