From 74cb86aba4a020d8e88c2c0d65f590e6fe9bbdf3 Mon Sep 17 00:00:00 2001 From: Jeroen Bakker Date: Tue, 15 Oct 2024 16:13:40 +0200 Subject: [PATCH] Vulkan: Fix point shader mismatch in wavevform_draw_one Pull Request: https://projects.blender.org/blender/blender/pulls/129061 --- source/blender/editors/interface/interface_draw.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/blender/editors/interface/interface_draw.cc b/source/blender/editors/interface/interface_draw.cc index 4b5a0ca0977..915c1aeff52 100644 --- a/source/blender/editors/interface/interface_draw.cc +++ b/source/blender/editors/interface/interface_draw.cc @@ -602,8 +602,9 @@ static void waveform_draw_one(const float *waveform, int waveform_num, const flo /* TODO: store the #blender::gpu::Batch inside the scope. */ blender::gpu::Batch *batch = GPU_batch_create_ex( GPU_PRIM_POINTS, vbo, nullptr, GPU_BATCH_OWNS_VBO); - GPU_batch_program_set_builtin(batch, GPU_SHADER_3D_UNIFORM_COLOR); + GPU_batch_program_set_builtin(batch, GPU_SHADER_3D_POINT_UNIFORM_SIZE_UNIFORM_COLOR_AA); GPU_batch_uniform_4f(batch, "color", col[0], col[1], col[2], 1.0f); + GPU_batch_uniform_1f(batch, "size", 1.0f); GPU_batch_draw(batch); GPU_batch_discard(batch);