Fix: GPU: Crash caused by buffer overflow of name buffer

This was caused by the name buffer not being sized
accordingly. Now counts the specialization constants.
This commit is contained in:
Clément Foucault
2024-01-07 16:53:56 +13:00
parent 8032f85f61
commit b8b9ed075b

View File

@@ -790,6 +790,7 @@ struct ShaderCreateInfo {
break;
}
specialization_constants_.append(constant);
interface_names_size_ += name.size() + 1;
return *(Self *)this;
}