diff options
| author | Tillmann Karras <tilkax@gmail.com> | 2019-03-01 21:51:33 +0000 |
|---|---|---|
| committer | Tillmann Karras <tilkax@gmail.com> | 2019-03-01 21:54:33 +0000 |
| commit | 24ba3bf2f219f4366c122bec5043d202eab9e05d (patch) | |
| tree | 35ca778ed36fbe7f9d3b385084a6432f1ea52aee /Source/Core/VideoCommon/TextureConversionShader.cpp | |
| parent | 4e5702de0fe755d369a509e2fc0d13c43908c3b9 (diff) | |
TextureConversionShader: fix XFB decoding shader
Diffstat (limited to 'Source/Core/VideoCommon/TextureConversionShader.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/TextureConversionShader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/TextureConversionShader.cpp b/Source/Core/VideoCommon/TextureConversionShader.cpp index da900ff72a..29c7cccc1b 100644 --- a/Source/Core/VideoCommon/TextureConversionShader.cpp +++ b/Source/Core/VideoCommon/TextureConversionShader.cpp @@ -1345,7 +1345,7 @@ static const std::map<TextureFormat, DecodingShaderInfo> s_decoding_shader_info{ int buffer_pos = int(u_src_offset + (uv.y * u_src_row_stride) + (uv.x / 2u)); float4 yuyv = float4(texelFetch(s_input_buffer, buffer_pos)); - float y = (uv.x & 1u) != 0u ? yuyv.r : yuyv.g; + float y = (uv.x & 1u) != 0u ? yuyv.b : yuyv.r; float yComp = 1.164 * (y - 16.0); float uComp = yuyv.g - 128.0; |
