Skip to content

src/glsl/glslang.cc: fails to compile with latest glslang

glslang added some additional fields[1] causing compilation errors

../src/glsl/glslang.cc: At global scope:
../src/glsl/glslang.cc:224:1: error: cannot convert '<brace-enclosed initializer list>' to 'int' in initialization
  224 | };
      | ^

unsure what to recommend for this since I couldn't find any obvious compile time check that could be used to see if the struct size changed or not

[1] https://github.com/KhronosGroup/glslang/commit/228c67228a181ac299df2a1c09a322dcc9bb0cdc#diff-ec0122601d80f687509af698e63af301c0689d0b813bd5e075c3e4f3b8c44de5

https://github.com/m-ab-s/media-autobuild_suite/issues/2277