libobs: Fix field order of retro/linear 2x shaders

The field orders of retro 2x and linear 2x deinterlace shaders were
inverted.  Note that yadif 2x does not act the same in this regard, its
field ordering is correct due to how it operates.
This commit is contained in:
jp9000 2016-04-24 01:16:33 -07:00
parent 1bec777210
commit 84ce1076f1

View File

@ -151,7 +151,7 @@ float4 texel_at_discard(int2 texel, int field)
float4 texel_at_discard_2x(int2 texel, int field)
{
field = frame2 ? (1 - field) : field;
field = frame2 ? field : (1 - field);
return texel_at_discard(texel, field);
}
@ -179,7 +179,7 @@ float4 texel_at_linear(int2 texel, int field)
float4 texel_at_linear_2x(int2 texel, int field)
{
field = frame2 ? (1 - field) : field;
field = frame2 ? field : (1 - field);
return texel_at_linear(texel, field);
}