diff options
Diffstat (limited to 'src/video_core/rasterizer.cpp')
| -rw-r--r-- | src/video_core/rasterizer.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/video_core/rasterizer.cpp b/src/video_core/rasterizer.cpp index 4bf7593ce..b7a7e62ab 100644 --- a/src/video_core/rasterizer.cpp +++ b/src/video_core/rasterizer.cpp | |||
| @@ -277,6 +277,10 @@ static void ProcessTriangleInternal(const VertexShader::OutputVertex& v0, | |||
| 277 | return 0; | 277 | return 0; |
| 278 | } | 278 | } |
| 279 | }; | 279 | }; |
| 280 | |||
| 281 | // Textures are laid out from bottom to top, hence we invert the t coordinate. | ||
| 282 | // NOTE: This may not be the right place for the inversion. | ||
| 283 | // TODO: Check if this applies to ETC textures, too. | ||
| 280 | s = GetWrappedTexCoord(texture.config.wrap_s, s, texture.config.width); | 284 | s = GetWrappedTexCoord(texture.config.wrap_s, s, texture.config.width); |
| 281 | t = texture.config.height - 1 - GetWrappedTexCoord(texture.config.wrap_t, t, texture.config.height); | 285 | t = texture.config.height - 1 - GetWrappedTexCoord(texture.config.wrap_t, t, texture.config.height); |
| 282 | 286 | ||