mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 11:38:05 +02:00
glsl: Fix ir_expression::constant_expression_value()
When the type of the ir_expression is error_type, return NULL.
This fixes bug 31371.
(cherry picked from commit b62c1c4595)
This commit is contained in:
parent
6e5907c390
commit
0da1c7b90f
1 changed files with 3 additions and 0 deletions
|
|
@ -54,6 +54,9 @@ dot(ir_constant *op0, ir_constant *op1)
|
|||
ir_constant *
|
||||
ir_expression::constant_expression_value()
|
||||
{
|
||||
if (this->type->is_error())
|
||||
return NULL;
|
||||
|
||||
ir_constant *op[2] = { NULL, NULL };
|
||||
ir_constant_data data;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue