From 01eade9a02a339f6937c80fcf92a01a5825c08f6 Mon Sep 17 00:00:00 2001 From: Jeroen Bakker Date: Mon, 11 Dec 2023 13:41:55 +0100 Subject: [PATCH] Fix: Assert When Using Shader Builder Depending on the compiler shader builder could assert due to an uninitialized attribute. This PR initializes the attribute. Pull Request: https://projects.blender.org/blender/blender/pulls/116034 --- source/blender/gpu/intern/gpu_shader_builder.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/gpu/intern/gpu_shader_builder.cc b/source/blender/gpu/intern/gpu_shader_builder.cc index c7ae5146f28..b0f8b99efb2 100644 --- a/source/blender/gpu/intern/gpu_shader_builder.cc +++ b/source/blender/gpu/intern/gpu_shader_builder.cc @@ -26,7 +26,7 @@ namespace blender::gpu::shader_builder { class ShaderBuilder { private: GHOST_SystemHandle ghost_system_; - GHOST_ContextHandle ghost_context_; + GHOST_ContextHandle ghost_context_ = nullptr; GPUContext *gpu_context_ = nullptr; public: