floooh / sokol-tools

Command line tools for use with sokol headers
MIT License
219 stars 54 forks source link

Regression: duplicate vertex attribute slot defines are not removed. #133

Closed floooh closed 2 months ago

floooh commented 2 months ago

If the same vertex shader is used in different shader programs, there are duplicate slot definitions:

#define ATTR_offscreen_vs_in_pos (0)
#define ATTR_offscreen_vs_in_uv (1)
#define ATTR_offscreen_vs_in_pos (0)
#define ATTR_offscreen_vs_in_uv (1

...not a problem in C/C++, but an error in other languages. This is a regression that was introduced in the last big refactor.