OpenGL does not allow C style initializers.
Hi, I hope I'm asking this in the right place..
I've been trying to get the Halsu_HybridKeyer_V022.shader shader for obs working running the latest builds on ArchLinux and I seem to be running into the following errors:
18:43:01.300: [obs-shaderfilter] Unable to create effect. Errors returned from parser:
18:43:01.300: (null) (427, 1): Error creating shader: 0(88) : error C7549: OpenGL does not allow C style initializers
18:43:01.300: 0(89) : error C7549: OpenGL does not allow C style initializers
18:43:01.300: 0(90) : error C7549: OpenGL does not allow C style initializers
18:43:01.300: 0(91) : error C7549: OpenGL does not allow C style initializers
18:43:01.300: 0(107) : error C7549: OpenGL does not allow C style initializers
18:43:01.300: 0(108) : error C7549: OpenGL does not allow C style initializers
18:43:01.300: 0(109) : error C7549: OpenGL does not allow C style initializers
18:43:01.300: 0(371) : error C7011: implicit cast from "vec4" to "vec3"
Inside the shader on lines 88-91:
float4 white = {1.0,1.0,1.0,1.0};
float4 black = {0.0,0.0,0.0,1.0};
float dx = 1.0 / uv_size.x;
float dy = 1.0 / uv_size.y;
I'm not exactly sure where to look. I most recently did update all of my packages with a pacman -Syu
Any help pointing me in any direction would be super appreciated if you have the time. I'm baffled at this point.
Thank you!
The line numbers in the error message are not the lines in the file. Can you provide the full shader file?
Sure. Wow! It's an honor to receive a reply from the "exeldro." You are a legend in my book! I'm merely a C#/Java (business applications developer) and am always amazed at the work of developers like yourself!
It appears github didn't like me attaching a .shader file to this comment so I created a gist: https://gist.github.com/giantg/9ffbf7f9bfffa7012eac0282bd54bf30