From 715d185dcdb32fd0db1eb881f074e5b0ba7a0965 Mon Sep 17 00:00:00 2001 From: Germano Cavalcante Date: Wed, 7 Sep 2022 08:49:58 -0300 Subject: DRW: update test 'draw_pass_all_commands' It was incorrectly updated in rBc226c480079fc07e3784f673b1bac4a774fe7937 --- source/blender/draw/tests/draw_pass_test.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source/blender/draw/tests') diff --git a/source/blender/draw/tests/draw_pass_test.cc b/source/blender/draw/tests/draw_pass_test.cc index 4ab32113388..394ca8bd3cf 100644 --- a/source/blender/draw/tests/draw_pass_test.cc +++ b/source/blender/draw/tests/draw_pass_test.cc @@ -22,7 +22,7 @@ static void test_draw_pass_all_commands() StorageBuffer ssbo; ssbo.push_update(); - float color[] = {1.0f, 1.0f, 1.0f, 0.0f}; + float4 color(1.0f, 1.0f, 1.0f, 0.0f); int3 dispatch_size(1); PassSimple pass = {"test.all_commands"}; @@ -72,8 +72,8 @@ static void test_draw_pass_all_commands() expected << " .bind_uniform_buf_ref(-1)" << std::endl; expected << " .bind_storage_buf(-1)" << std::endl; expected << " .bind_storage_buf_ref(-1)" << std::endl; - expected << " .push_constant(2, data=0)" << std::endl; - expected << " .push_constant(2, data=1)" << std::endl; + expected << " .push_constant(1, data=(1, 1, 1, 0))" << std::endl; + expected << " .push_constant(1, data=(1, 1, 1, 1))" << std::endl; expected << " .push_constant(0, data=(" << std::endl; expected << "( 1.000000, 0.000000, 0.000000, 0.000000)" << std::endl; expected << "( 0.000000, 1.000000, 0.000000, 0.000000)" << std::endl; -- cgit v1.2.3