diff options
| author | Markus Wick <degasus@users.noreply.github.com> | 2015-11-30 23:58:06 +0100 |
|---|---|---|
| committer | Markus Wick <degasus@users.noreply.github.com> | 2015-11-30 23:58:06 +0100 |
| commit | 8322040c47e87cde407b21633be021ed76d41e5b (patch) | |
| tree | b653eb2950090e109410674ef32d68470e16aa2f /Source/Core/VideoCommon/PixelShaderGen.cpp | |
| parent | 02d5981b226c356347841e04367cf6284d9738a6 (diff) | |
| parent | d9f1523a7b2383d94768dd4fb5c82c62ef6395be (diff) | |
Merge pull request #3301 from awickham/patch-1
Make cast from int to float explicit in shader
Diffstat (limited to 'Source/Core/VideoCommon/PixelShaderGen.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/PixelShaderGen.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/PixelShaderGen.cpp b/Source/Core/VideoCommon/PixelShaderGen.cpp index a1cfcc4611..4254334d6c 100644 --- a/Source/Core/VideoCommon/PixelShaderGen.cpp +++ b/Source/Core/VideoCommon/PixelShaderGen.cpp @@ -564,7 +564,7 @@ static inline T GeneratePixelShader(DSTALPHA_MODE dstAlphaMode, API_TYPE ApiType // Opengl has reversed vertical screenspace coordiantes if (ApiType == API_OPENGL) - out.Write("\tscreenpos.y = %i - screenpos.y;\n", EFB_HEIGHT); + out.Write("\tscreenpos.y = %i.0 - screenpos.y;\n", EFB_HEIGHT); out.Write("\tint zCoord = int(" I_ZSLOPE".z + " I_ZSLOPE".x * screenpos.x + " I_ZSLOPE".y * screenpos.y);\n"); } |
