Merge branch 'blender-v4.3-release'

This commit is contained in:
Clément Foucault
2024-11-06 13:03:48 +01:00

View File

@@ -344,7 +344,7 @@ void GPUCodegen::generate_attribs()
/* Input declaration, loading / assignment to interface and geometry shader passthrough. */
std::stringstream load_ss;
int slot = 15;
int slot = GPU_shader_draw_parameters_support() ? 15 : 14;
LISTBASE_FOREACH (GPUMaterialAttribute *, attr, &graph.attributes) {
if (slot == -1) {
BLI_assert_msg(0, "Too many attributes");