Skip to content
Permalink
Browse files

Merge pull request #2031 from degasus/master

ShaderGen: Fix pixel offset correction
  • Loading branch information
delroth committed Feb 11, 2015
2 parents 4ff5ec7 + c404e87 commit b7e455ece8dfef9a553b7685106626a6ca0d0877
Showing with 1 addition and 1 deletion.
  1. +1 −1 Source/Core/VideoCommon/VertexShaderGen.cpp
@@ -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.
// Hence, we compensate for this pixel center difference so that primitives
// 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)
{

0 comments on commit b7e455e

Please sign in to comment.
You can’t perform that action at this time.