Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiguel Pozo <pragma37@gmail.com>2022-10-04 17:16:46 +0300
committerMiguel Pozo <pragma37@gmail.com>2022-10-04 17:16:46 +0300
commitdd4a40f42d7b3c7aec86c5a07ce6ae71f006f7d3 (patch)
treef1ce18514dda330d837a209ddb72074ad36844f0 /source/blender
parent957cb173f21628c7056bc67236c622c2e17504e2 (diff)
Always initialize MaterialPass (Fixes a crash in mscv)
Differential Revision: https://developer.blender.org/D16134
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/draw/engines/eevee_next/eevee_material.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/draw/engines/eevee_next/eevee_material.cc b/source/blender/draw/engines/eevee_next/eevee_material.cc
index a92f96e8c70..b63002df2e3 100644
--- a/source/blender/draw/engines/eevee_next/eevee_material.cc
+++ b/source/blender/draw/engines/eevee_next/eevee_material.cc
@@ -164,7 +164,7 @@ MaterialPass MaterialModule::material_pass_get(Object *ob,
blender_mat->nodetree :
default_surface_ntree_.nodetree_get(blender_mat);
- MaterialPass matpass;
+ MaterialPass matpass = MaterialPass();
matpass.gpumat = inst_.shaders.material_shader_get(
blender_mat, ntree, pipeline_type, geometry_type, true);