mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 07:53:26 +00:00
Fix duplicated spec constant on SPIR-V reflection.
This commit is contained in:
parent
0e3a5eda86
commit
1af1edf60c
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue