glsl: Silence unused parameter warning
[mesa.git] / src / compiler / glsl / lower_ubo_reference.cpp
index 083f43f93a39d37e4e620af74627be56c743a48d..1ed281c488aaa1f837bdcb480040a486f6b79783 100644 (file)
@@ -320,7 +320,7 @@ lower_ubo_reference_visitor::setup_for_load_or_store(void *mem_ctx,
    *const_offset = ubo_var->Offset;
 
    this->struct_field = NULL;
-   setup_buffer_access(mem_ctx, var, deref, offset, const_offset, row_major,
+   setup_buffer_access(mem_ctx, deref, offset, const_offset, row_major,
                        matrix_columns, &this->struct_field, packing);
 }