mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-31 22:50:08 +01:00
ast_to_hir: Allow matrix-from-matrix constructors in GLSL ES.
Everything but 1.10 supports this, so just change the check to ==.
This commit is contained in:
parent
883ac22810
commit
b4ec3f268c
1 changed files with 1 additions and 1 deletions
|
|
@ -1063,7 +1063,7 @@ ast_function_expression::hir(exec_list *instructions,
|
|||
* "It is an error to construct matrices from other matrices. This
|
||||
* is reserved for future use."
|
||||
*/
|
||||
if ((state->language_version <= 110) && (matrix_parameters > 0)
|
||||
if (state->language_version == 110 && matrix_parameters > 0
|
||||
&& constructor_type->is_matrix()) {
|
||||
_mesa_glsl_error(& loc, state, "cannot construct `%s' from a "
|
||||
"matrix in GLSL 1.10",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue