diff options
author | Timothy Arceri <[email protected]> | 2018-05-08 10:10:39 +1000 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2018-05-09 14:24:36 +1000 |
commit | 4560aad780b851f855a8adc72ea34ca4eb17634a (patch) | |
tree | 037809301fbdb831f975b152eec0997119738c8a /src/mesa/state_tracker | |
parent | be3ee9d141b958d41378fa8fd61255b14f5b6e74 (diff) |
mesa: add GLSLVersionCompat constant
This allows drivers to define what version of GLSL they support
in compat. This will be needed in order to support compat 3.2
without breaking drivers that wont support it.
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r-- | src/mesa/state_tracker/st_extensions.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c index 5479e637aff..19ef736e5b0 100644 --- a/src/mesa/state_tracker/st_extensions.c +++ b/src/mesa/state_tracker/st_extensions.c @@ -936,6 +936,7 @@ void st_init_extensions(struct pipe_screen *screen, /* Figure out GLSL support and set GLSLVersion to it. */ consts->GLSLVersion = screen->get_param(screen, PIPE_CAP_GLSL_FEATURE_LEVEL); + consts->GLSLVersionCompat = 140; _mesa_override_glsl_version(consts); |