Skip to content

Commit

Permalink
Fix duplicated spec constant on SPIR-V reflection.
Browse files Browse the repository at this point in the history
(cherry picked from commit 1af1edf)
  • Loading branch information
DarioSamo authored and Spartan322 committed Jan 22, 2025
1 parent af59e74 commit ece864e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion servers/rendering/rendering_device_driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ Error RenderingDeviceDriver::_reflect_spirv(VectorView<ShaderStageSPIRVData> p_s
}
}

if (existing > 0) {
if (existing >= 0) {
r_reflection.specialization_constants.write[existing].stages.set_flag(stage_flag);
} else {
r_reflection.specialization_constants.push_back(sconst);
Expand Down

0 comments on commit ece864e

Please sign in to comment.