diff options
Diffstat (limited to 'src/mesa/shader/slang/slang_compile_operation.c')
-rw-r--r-- | src/mesa/shader/slang/slang_compile_operation.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/mesa/shader/slang/slang_compile_operation.c b/src/mesa/shader/slang/slang_compile_operation.c index 30df4b00a9..7e92013559 100644 --- a/src/mesa/shader/slang/slang_compile_operation.c +++ b/src/mesa/shader/slang/slang_compile_operation.c @@ -43,11 +43,7 @@ int slang_operation_construct (slang_operation *oper) oper->locals = (slang_variable_scope *) slang_alloc_malloc (sizeof (slang_variable_scope)); if (oper->locals == NULL) return 0; - if (!slang_variable_scope_construct (oper->locals)) - { - slang_alloc_free (oper->locals); - return 0; - } + _slang_variable_scope_ctr (oper->locals); return 1; } |