OpenGL fails to compile (ReShade 2.0.2/2.0.3)

More
4 years 5 months ago - 4 years 5 months ago #1 by matsilagi
So, i was testing a few AO shaders with Darkplaces (Quake Sourceport) and ReShade decided to give lots of compile errors, the shader was fine since it compiles on all renderers BUT OpenGL

Here's the log i managed to take:
B:\Program Files (x86)\Quake\ReShade.fx(103, 6): error: internal shader compilation failed
0(8) : error C0000: syntax error, unexpected '}' at token "}"
0(10) : error C1321: structure type '_NS_AORadiusParams' may not be defined in a uniform or buffer block
0(14) : error C7554: OpenGL requires sampler variables to be explicitly declared as uniform
0(15) : error C7554: OpenGL requires sampler variables to be explicitly declared as uniform
0(16) : error C7554: OpenGL requires sampler variables to be explicitly declared as uniform
0(17) : error C7554: OpenGL requires sampler variables to be explicitly declared as uniform
0(18) : error C7554: OpenGL requires sampler variables to be explicitly declared as uniform
0(19) : error C7554: OpenGL requires sampler variables to be explicitly declared as uniform
0(20) : error C7525: OpenGL does not allow a parameter with the "uniform" qualifier
0(26) : error C7525: OpenGL does not allow a parameter with the "uniform" qualifier
0(31) : error C7525: OpenGL does not allow a parameter with the "uniform" qualifier
0(44) : error C7525: OpenGL does not allow a parameter with the "uniform" qualifier
0(44) : error C7525: OpenGL does not allow a parameter with the "uniform" qualifier
0(44) : error C7525: OpenGL does not allow a parameter with the "uniform" qualifier
0(44) : error C7525: OpenGL does not allow a parameter with the "uniform" qualifier
0(46) : error C7563: assignment to uniform color
0(47) : error C7563: assignment to uniform normal
0(49) : error C7515: OpenGL requires varying variables to be declared in global scope
0(49) : error C5056: 'varying' not allowed on local variable '_param_texcoord'
0(50) : error C7515: OpenGL requires varying variables to be declared in global scope
0(50) : error C5056: 'varying' not allowed on local variable '_param_color'
0(51) : error C7515: OpenGL requires varying variables to be declared in global scope
0(51) : error C5056: 'varying' not allowed on local variable '_param_normal'
(0) : error C0000: syntax error, unexpected $end at token "<EOF>"

If you want the code, i can only send it on Steam because reasons. (However, i can confirm it is not a code issue)
Last edit: 4 years 5 months ago by matsilagi.

Please Log in or Create an account to join the conversation.

More
4 years 5 months ago #2 by crosire
Replied by crosire on topic OpenGL fails to compile (ReShade 2.0.2/2.0.3)
I'd need that shader file to debug, so yeah, just message me on Steam when you get a chance =).

Please Log in or Create an account to join the conversation.