diff options
| author | 2019-09-17 03:32:24 -0300 | |
|---|---|---|
| committer | 2019-09-17 03:32:24 -0300 | |
| commit | 2dd64117532e8c738e66ad45b009522e1acc53f2 (patch) | |
| tree | 78193209fc693f8ef9a1c41e43568e6171b7682e | |
| parent | Merge pull request #2851 from ReinUsesLisp/srgb (diff) | |
| download | yuzu-2dd64117532e8c738e66ad45b009522e1acc53f2.tar.gz yuzu-2dd64117532e8c738e66ad45b009522e1acc53f2.tar.xz yuzu-2dd64117532e8c738e66ad45b009522e1acc53f2.zip | |
maxwell_to_gl: Fix mipmap filtering
OpenGL texture filters follow GL_<texture_filter>_MIPMAP_<mipmap_filter>
but we were using them in the opposite way.
| -rw-r--r-- | src/video_core/renderer_opengl/maxwell_to_gl.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/renderer_opengl/maxwell_to_gl.h b/src/video_core/renderer_opengl/maxwell_to_gl.h index ea77dd211..9ed738171 100644 --- a/src/video_core/renderer_opengl/maxwell_to_gl.h +++ b/src/video_core/renderer_opengl/maxwell_to_gl.h | |||
| @@ -145,7 +145,7 @@ inline GLenum TextureFilterMode(Tegra::Texture::TextureFilter filter_mode, | |||
| 145 | case Tegra::Texture::TextureMipmapFilter::None: | 145 | case Tegra::Texture::TextureMipmapFilter::None: |
| 146 | return GL_LINEAR; | 146 | return GL_LINEAR; |
| 147 | case Tegra::Texture::TextureMipmapFilter::Nearest: | 147 | case Tegra::Texture::TextureMipmapFilter::Nearest: |
| 148 | return GL_NEAREST_MIPMAP_LINEAR; | 148 | return GL_LINEAR_MIPMAP_NEAREST; |
| 149 | case Tegra::Texture::TextureMipmapFilter::Linear: | 149 | case Tegra::Texture::TextureMipmapFilter::Linear: |
| 150 | return GL_LINEAR_MIPMAP_LINEAR; | 150 | return GL_LINEAR_MIPMAP_LINEAR; |
| 151 | } | 151 | } |
| @@ -157,7 +157,7 @@ inline GLenum TextureFilterMode(Tegra::Texture::TextureFilter filter_mode, | |||
| 157 | case Tegra::Texture::TextureMipmapFilter::Nearest: | 157 | case Tegra::Texture::TextureMipmapFilter::Nearest: |
| 158 | return GL_NEAREST_MIPMAP_NEAREST; | 158 | return GL_NEAREST_MIPMAP_NEAREST; |
| 159 | case Tegra::Texture::TextureMipmapFilter::Linear: | 159 | case Tegra::Texture::TextureMipmapFilter::Linear: |
| 160 | return GL_LINEAR_MIPMAP_NEAREST; | 160 | return GL_NEAREST_MIPMAP_LINEAR; |
| 161 | } | 161 | } |
| 162 | } | 162 | } |
| 163 | } | 163 | } |