diff --git a/source/blender/gpu/intern/gpu_codegen.hh b/source/blender/gpu/intern/gpu_codegen.hh index 3ae54ce74f1..f107da1ca4a 100644 --- a/source/blender/gpu/intern/gpu_codegen.hh +++ b/source/blender/gpu/intern/gpu_codegen.hh @@ -46,7 +46,6 @@ struct GPUCodegenCreateInfo : ShaderCreateInfo { GPUCodegenCreateInfo(const char *name) : ShaderCreateInfo(name), info_name_(name) { - is_codegen_ = true; /* Base class is always initialized first, so we need to update the name_ pointer here. */ name_ = info_name_.c_str(); }; diff --git a/source/blender/gpu/intern/gpu_shader.cc b/source/blender/gpu/intern/gpu_shader.cc index ff47a333a47..02626b33d07 100644 --- a/source/blender/gpu/intern/gpu_shader.cc +++ b/source/blender/gpu/intern/gpu_shader.cc @@ -660,7 +660,6 @@ Shader *ShaderCompiler::compile(const shader::ShaderCreateInfo &info, bool is_ba using namespace blender::gpu::shader; const_cast(info).finalize(); - BLI_assert(info.do_static_compilation_ || info.is_codegen_); TimePoint start_time; diff --git a/source/blender/gpu/intern/gpu_shader_create_info.hh b/source/blender/gpu/intern/gpu_shader_create_info.hh index bbf91e253b8..13cdde66427 100644 --- a/source/blender/gpu/intern/gpu_shader_create_info.hh +++ b/source/blender/gpu/intern/gpu_shader_create_info.hh @@ -687,8 +687,6 @@ struct ShaderCreateInfo { StringRefNull name_; /** True if the shader is static and can be pre-compiled at compile time. */ bool do_static_compilation_ = false; - /** True if the shader comes from GPUCodegen. */ - bool is_codegen_ = false; /** If true, all additionally linked create info will be merged into this one. */ bool finalized_ = false; /** If true, all resources will have an automatic location assigned. */