Unified · Split
| @@ -2135,7 +2135,7 @@ print: · 2134 unmodified lines | ||
| 2135 | 2135 | /* Write shader info */ |
| 2136 | 2136 | for (int i = 0; i < nb; i++) { |
| 2137 | 2137 | const struct descriptor_props *prop = &descriptor_props[desc[i].type]; |
| 2138 | − GLSLA("layout (set = %i, binding = %i", shd->nb_descriptor_sets - 1, i); | |
| 2138 | + GLSLA("layout (set = %i, binding = %i", FFMAX(shd->nb_descriptor_sets - 1, 0), i); | |
| 2139 | 2139 | |
| 2140 | 2140 | if (desc[i].mem_layout) |
| 2141 | 2141 | GLSLA(", %s", desc[i].mem_layout); |