From c8f52b0ba35657f77b33f1c107f1ebfec8475c28 Mon Sep 17 00:00:00 2001 From: lightningterror Date: Sun, 25 Nov 2018 04:06:04 +0100 Subject: [PATCH] GSdx-ogl: Move rgb channel 7 to empty slot 5. --- plugins/GSdx/Renderers/Common/GSDevice.h | 2 +- plugins/GSdx/res/glsl/tfx_fs.glsl | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/GSdx/Renderers/Common/GSDevice.h b/plugins/GSdx/Renderers/Common/GSDevice.h index 489077e6c9..a62767debe 100644 --- a/plugins/GSdx/Renderers/Common/GSDevice.h +++ b/plugins/GSdx/Renderers/Common/GSDevice.h @@ -60,8 +60,8 @@ enum ChannelFetch ChannelFetch_GREEN = 2, ChannelFetch_BLUE = 3, ChannelFetch_ALPHA = 4, + ChannelFetch_RGB = 5, ChannelFetch_GXBY = 6, - ChannelFetch_RGB = 7, }; #pragma pack(push, 1) diff --git a/plugins/GSdx/res/glsl/tfx_fs.glsl b/plugins/GSdx/res/glsl/tfx_fs.glsl index 4a95df4f64..a847a8b022 100644 --- a/plugins/GSdx/res/glsl/tfx_fs.glsl +++ b/plugins/GSdx/res/glsl/tfx_fs.glsl @@ -592,10 +592,10 @@ vec4 ps_color() vec4 T = fetch_blue(); #elif PS_CHANNEL_FETCH == 4 vec4 T = fetch_alpha(); +#elif PS_CHANNEL_FETCH == 5 + vec4 T = fetch_rgb(); #elif PS_CHANNEL_FETCH == 6 vec4 T = fetch_gXbY(); -#elif PS_CHANNEL_FETCH == 7 - vec4 T = fetch_rgb(); #elif PS_DEPTH_FMT > 0 // Integral coordinate vec4 T = sample_depth(st_int);