Skip to content

Commit

Permalink
VideoCommon: Add epsilon to work around Nvidia rounding issue in text…
Browse files Browse the repository at this point in the history
…ure lookup
  • Loading branch information
endrift committed Apr 30, 2016
1 parent e629727 commit 88e6557
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Core/VideoCommon/PixelShaderGen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -836,7 +836,7 @@ static void WriteStage(T& out, pixel_shader_uid_data* uid_data, int n, API_TYPE
uid_data->SetTevindrefTexmap(i, texmap);

out.Write("\ttextemp = ");
SampleTexture<T>(out, "float2(tevcoord.xy)", texswap, texmap, ApiType);
SampleTexture<T>(out, "(float2(tevcoord.xy) + 0.05)", texswap, texmap, ApiType);
}
else
{
Expand Down

0 comments on commit 88e6557

Please sign in to comment.