From 12dac187afaa5bb6370c37a02adbfe3f58943a74 Mon Sep 17 00:00:00 2001 From: Jeroen Bakker Date: Tue, 18 Apr 2023 10:35:41 +0200 Subject: [PATCH] GPU: Tests Can Fail When Running OpenGL/Vulkan In Single Go. Issue detected and solved by Kazashi Yoshioka. --- source/blender/gpu/tests/shader_test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/gpu/tests/shader_test.cc b/source/blender/gpu/tests/shader_test.cc index 26536dd221f..c6911314210 100644 --- a/source/blender/gpu/tests/shader_test.cc +++ b/source/blender/gpu/tests/shader_test.cc @@ -145,7 +145,7 @@ static void test_shader_compute_vbo() GPU_shader_bind(shader); /* Construct VBO. */ - static GPUVertFormat format = {0}; + GPUVertFormat format = {0}; GPU_vertformat_attr_add(&format, "pos", GPU_COMP_F32, 4, GPU_FETCH_FLOAT); GPUVertBuf *vbo = GPU_vertbuf_create_with_format_ex(&format, GPU_USAGE_DEVICE_ONLY); GPU_vertbuf_data_alloc(vbo, SIZE); -- 2.30.2