diff options
| author | Markus Wick <degasus@users.noreply.github.com> | 2017-04-12 23:38:49 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-04-12 23:38:49 +0200 |
| commit | 7e40f1757e7987737f8aa146fc6053354207bb1c (patch) | |
| tree | 1992004a9650be6126463082a40ad287597f3475 /Source/Core/VideoCommon/TextureConversionShader.cpp | |
| parent | 733df23e98b32e4e2bce05ecda238537269b593f (diff) | |
| parent | 05b4d14bf026c083e4a2e7905d90dcf5797cd85a (diff) | |
Merge pull request #5253 from ligfx/fixtextureconversionshader
TextureConversionShader: fix syntax error
Diffstat (limited to 'Source/Core/VideoCommon/TextureConversionShader.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/TextureConversionShader.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/TextureConversionShader.cpp b/Source/Core/VideoCommon/TextureConversionShader.cpp index d22ade97c7..04dd4a3357 100644 --- a/Source/Core/VideoCommon/TextureConversionShader.cpp +++ b/Source/Core/VideoCommon/TextureConversionShader.cpp @@ -345,9 +345,11 @@ static void WriteIA4Encoder(char*& p, APIType ApiType, const EFBCopyFormat& form static void WriteRGB565Encoder(char*& p, APIType ApiType, const EFBCopyFormat& format) { WriteSwizzler(p, GX_TF_RGB565, ApiType); + WRITE(p, " float3 texSample0;\n"); + WRITE(p, " float3 texSample1;\n"); - WriteSampleColor(p, "rgb", "float3 texSample0", 0, ApiType, format, false); - WriteSampleColor(p, "rgb", "float3 texSample1", 1, ApiType, format, false); + WriteSampleColor(p, "rgb", "texSample0", 0, ApiType, format, false); + WriteSampleColor(p, "rgb", "texSample1", 1, ApiType, format, false); WRITE(p, " float2 texRs = float2(texSample0.r, texSample1.r);\n"); WRITE(p, " float2 texGs = float2(texSample0.g, texSample1.g);\n"); WRITE(p, " float2 texBs = float2(texSample0.b, texSample1.b);\n"); |
