Skip to content

Commit 9ca4c91

Browse files
committed
pipeline creation threading crash fix
1 parent 8772365 commit 9ca4c91

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

WickedEngine/wiRenderer.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -373,10 +373,10 @@ union ObjectRenderingVariant
373373
uint32_t value;
374374
};
375375
static_assert(sizeof(ObjectRenderingVariant) == sizeof(uint32_t));
376-
wi::unordered_map<uint32_t, PipelineState> PSO_object[RENDERPASS_COUNT][MaterialComponent::SHADERTYPE_COUNT];
377376
inline PipelineState* GetObjectPSO(ObjectRenderingVariant variant)
378377
{
379-
return &PSO_object[variant.bits.renderpass][variant.bits.shadertype][variant.value];
378+
static wi::unordered_map<uint32_t, PipelineState> PSO_object[RENDERPASS_COUNT][MaterialComponent::SHADERTYPE_COUNT][OBJECT_MESH_SHADER_PSO_COUNT];
379+
return &PSO_object[variant.bits.renderpass][variant.bits.shadertype][variant.bits.mesh_shader][variant.value];
380380
}
381381
wi::jobsystem::context mesh_shader_ctx;
382382
wi::jobsystem::context object_pso_job_ctx[RENDERPASS_COUNT][OBJECT_MESH_SHADER_PSO_COUNT];

WickedEngine/wiVersion.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace wi::version
99
// minor features, major updates, breaking compatibility changes
1010
const int minor = 71;
1111
// minor bug fixes, alterations, refactors, updates
12-
const int revision = 560;
12+
const int revision = 561;
1313

1414
const std::string version_string = std::to_string(major) + "." + std::to_string(minor) + "." + std::to_string(revision);
1515

0 commit comments

Comments
 (0)