Browse Source

Fix duplicated spec constant on SPIR-V reflection.

Dario 7 months ago
parent
commit
1af1edf60c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      servers/rendering/rendering_device_driver.cpp

+ 1 - 1
servers/rendering/rendering_device_driver.cpp

@@ -259,7 +259,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);