mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 11:00:11 +01:00
glsl: add the tessellation extension to the list for the "layout" qualifier
This is technically not needed, but it makes the compiler return a better
error message if tessellation is used with GLSL < 1.50.
Instead of:
error: syntax error, unexpected NEW_IDENTIFIER, expecting $end
It returns:
error: #version 150 layout qualifier `triangles' used
And the tessellation spec says:
OpenGL 3.2 and GLSL 1.50 are required.
So it makes perfect sense.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
fb800b3dcd
commit
2abbe941e1
1 changed files with 2 additions and 1 deletions
|
|
@ -426,7 +426,8 @@ layout {
|
|||
|| yyextra->ARB_uniform_buffer_object_enable
|
||||
|| yyextra->ARB_fragment_coord_conventions_enable
|
||||
|| yyextra->ARB_shading_language_420pack_enable
|
||||
|| yyextra->ARB_compute_shader_enable) {
|
||||
|| yyextra->ARB_compute_shader_enable
|
||||
|| yyextra->ARB_tessellation_shader_enable) {
|
||||
return LAYOUT_TOK;
|
||||
} else {
|
||||
void *mem_ctx = yyextra;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue