Skip to content

Commit 7285e89

Browse files
committed
Merge pull request #101343 from DarioSamo/shader-reflection-fix
Fix duplicated spec constant on SPIR-V reflection.
2 parents d5b73e2 + 1af1edf commit 7285e89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

servers/rendering/rendering_device_driver.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ Error RenderingDeviceDriver::_reflect_spirv(VectorView<ShaderStageSPIRVData> p_s
259259
}
260260
}
261261

262-
if (existing > 0) {
262+
if (existing >= 0) {
263263
r_reflection.specialization_constants.write[existing].stages.set_flag(stage_flag);
264264
} else {
265265
r_reflection.specialization_constants.push_back(sconst);

0 commit comments

Comments
 (0)