mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 11:48:06 +02:00
glsl: replace null check with assert
This was added in54f583a20since then error handling has improved. The test this was added to fix now fails earlier since01822706ecReviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
parent
051603efd5
commit
5cf156c6b4
1 changed files with 1 additions and 3 deletions
|
|
@ -1824,9 +1824,7 @@ ir_swizzle::constant_expression_value(struct hash_table *variable_context)
|
|||
ir_constant *
|
||||
ir_dereference_variable::constant_expression_value(struct hash_table *variable_context)
|
||||
{
|
||||
/* This may occur during compile and var->type is glsl_type::error_type */
|
||||
if (!var)
|
||||
return NULL;
|
||||
assert(var);
|
||||
|
||||
/* Give priority to the context hashtable, if it exists */
|
||||
if (variable_context) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue