Commit be03a7a0 authored by Steve Lhomme's avatar Steve Lhomme

d3d11_shaders: don't output negative colors after chroma conversion to RGB

Fixes #21349
parent c54aae2f
......@@ -131,7 +131,7 @@ static const char* globPixelShaderDefault = "\
sample = sampleTexture( SamplerStates[1], In.Texture );\n\
else\n\
sample = sampleTexture( SamplerStates[0], In.Texture );\n\
float4 rgba = mul(mul(sample, WhitePoint), Colorspace);\n\
float4 rgba = max(mul(mul(sample, WhitePoint), Colorspace),0);\n\
float opacity = rgba.a * Opacity;\n\
float4 rgb = rgba; rgb.a = 0;\n\
rgb = sourceToLinear(rgb);\n\
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment