diff options
author | bunnei <bunneidev@gmail.com> | 2018-10-30 03:34:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-30 03:34:00 +0100 |
commit | c5a849212f6a1ee2945e4584bcda50a082872336 (patch) | |
tree | 580b80a9c68c78f6e28b49bff2263fe421377972 /src/video_core/renderer_opengl/gl_rasterizer.cpp | |
parent | Merge pull request #1617 from FearlessTobi/fix-stretch-delay (diff) | |
parent | Fixed black textures, pixelation and we no longer require to auto-generate mipmaps (diff) | |
download | yuzu-c5a849212f6a1ee2945e4584bcda50a082872336.tar yuzu-c5a849212f6a1ee2945e4584bcda50a082872336.tar.gz yuzu-c5a849212f6a1ee2945e4584bcda50a082872336.tar.bz2 yuzu-c5a849212f6a1ee2945e4584bcda50a082872336.tar.lz yuzu-c5a849212f6a1ee2945e4584bcda50a082872336.tar.xz yuzu-c5a849212f6a1ee2945e4584bcda50a082872336.tar.zst yuzu-c5a849212f6a1ee2945e4584bcda50a082872336.zip |
Diffstat (limited to 'src/video_core/renderer_opengl/gl_rasterizer.cpp')
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp index cb180b93c..7bb5544fc 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.cpp +++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp @@ -731,11 +731,15 @@ void RasterizerOpenGL::SamplerInfo::SyncWithConfig(const Tegra::Texture::TSCEntr if (mag_filter != config.mag_filter) { mag_filter = config.mag_filter; - glSamplerParameteri(s, GL_TEXTURE_MAG_FILTER, MaxwellToGL::TextureFilterMode(mag_filter)); + glSamplerParameteri( + s, GL_TEXTURE_MAG_FILTER, + MaxwellToGL::TextureFilterMode(mag_filter, Tegra::Texture::TextureMipmapFilter::None)); } - if (min_filter != config.min_filter) { + if (min_filter != config.min_filter || mip_filter != config.mip_filter) { min_filter = config.min_filter; - glSamplerParameteri(s, GL_TEXTURE_MIN_FILTER, MaxwellToGL::TextureFilterMode(min_filter)); + mip_filter = config.mip_filter; + glSamplerParameteri(s, GL_TEXTURE_MIN_FILTER, + MaxwellToGL::TextureFilterMode(min_filter, mip_filter)); } if (wrap_u != config.wrap_u) { |