Skip to content

Commit 1af1edf

Browse files
committed
Fix duplicated spec constant on SPIR-V reflection.
1 parent 0e3a5ed commit 1af1edf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

servers/rendering/rendering_device_driver.cpp

+1-1
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)