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
This commit is contained in:
Jeroen Bakker
2023-12-11 13:41:55 +01:00
parent 750bc5c921
commit 01eade9a02

View File

@@ -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: