diff options
author | Iago Toral Quiroga <[email protected]> | 2019-10-18 09:37:54 +0200 |
---|---|---|
committer | Iago Toral <[email protected]> | 2019-10-21 09:09:15 +0000 |
commit | 2d5edf2558869178515cd62b2305e01c2b3cfa35 (patch) | |
tree | 61bbd32528d3de1007b106e2dcbabcb1e6668183 /src/mesa/state_tracker | |
parent | f4ba31ff504489b7195c83fa8703ba091406d808 (diff) |
st/mesa: only require ESSL 3.1 for geometry shaders
According to the OES_geometry_shader spec, section Dependencies:
"OpenGL ES 3.1 and OpenGL ES Shading Language 3.10
are required."
Reviewed-by: Kristian H. Kristensen <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r-- | src/mesa/state_tracker/st_extensions.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c index 12a1fabe620..ba912d35be8 100644 --- a/src/mesa/state_tracker/st_extensions.c +++ b/src/mesa/state_tracker/st_extensions.c @@ -1174,7 +1174,7 @@ void st_init_extensions(struct pipe_screen *screen, * invocations of a geometry shader. There is no separate cap for that, so * we check the GLSLVersion. */ - if ((GLSLVersion >= 400 || ESSLVersion >= 320) && + if ((GLSLVersion >= 400 || ESSLVersion >= 310) && screen->get_shader_param(screen, PIPE_SHADER_GEOMETRY, PIPE_SHADER_CAP_MAX_INSTRUCTIONS) > 0) { extensions->OES_geometry_shader = GL_TRUE; |