Skip to content

Commit

Permalink
GS/DX11: Fix downsample uniform unpack
Browse files Browse the repository at this point in the history
Fixes #11482.
  • Loading branch information
stenzek committed Jun 28, 2024
1 parent 56f32ff commit 51917c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/resources/shaders/dx11/convert.fx
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ float ps_depth_copy(PS_INPUT input) : SV_Depth

PS_OUTPUT ps_downsample_copy(PS_INPUT input)
{
int DownsampleFactor = EMODA;
int2 ClampMin = int2(EMODC, DOFFSET);
int DownsampleFactor = DOFFSET;
int2 ClampMin = int2(EMODA, EMODC);
float Weight = BGColor.x;

int2 coord = max(int2(input.p.xy) * DownsampleFactor, ClampMin);
Expand Down

0 comments on commit 51917c4

Please sign in to comment.