floooh / sokol

minimal cross-platform standalone C headers
https://floooh.github.io/sokol-html5
zlib License
6.53k stars 468 forks source link

[sokol_gfx] Increase _SG_STRING_SIZE from 16 to 32 #1026

Closed jakubtomsu closed 2 months ago

jakubtomsu commented 2 months ago

I'm not sure why the static string size limit was so low, since it's used for vertex attribute names. I ran into issues where a regular variable name of a shader vertex vertex/instance attribute would trigger this limit.

So I changed it to 32 which seems like a more reasonable limit for variable names...

floooh commented 2 months ago

Yes agreed, 32 is a more reasonable size.