This code to free shaders by casting a struct to a pointer array is not valid in general, and particularly when compiling with Clang (on Linux and macOS) it fails and can read invalid/uninitialized memory .
This code to free shaders by casting a struct to a pointer array is not valid in general, and particularly when compiling with Clang (on Linux and macOS) it fails and can read invalid/uninitialized memory .