mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-04 15:19:09 +00:00
Merge pull request #2031 from degasus/master
ShaderGen: Fix pixel offset correction
This commit is contained in:
commit
b7e455ece8
1 changed files with 1 additions and 1 deletions
|
@ -383,7 +383,7 @@ static inline void GenerateVertexShader(T& out, u32 components, API_TYPE api_typ
|
||||||
// which in turn can be critical if it happens for clear quads.
|
// which in turn can be critical if it happens for clear quads.
|
||||||
// Hence, we compensate for this pixel center difference so that primitives
|
// Hence, we compensate for this pixel center difference so that primitives
|
||||||
// get rasterized correctly.
|
// get rasterized correctly.
|
||||||
out.Write("o.pos.xy = o.pos.xy - " I_PIXELCENTERCORRECTION".xy;\n");
|
out.Write("o.pos.xy = o.pos.xy - o.pos.w * " I_PIXELCENTERCORRECTION".xy;\n");
|
||||||
|
|
||||||
if (api_type == API_OPENGL)
|
if (api_type == API_OPENGL)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue