diff options
author | Rodrigo Locatti <reinuseslisp@airmail.cc> | 2020-07-02 09:57:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-02 09:57:40 +0200 |
commit | c58e21cd767e7b23d9e71795265456cc1ed13f48 (patch) | |
tree | 78d25a93e3c4138caeccaa1fe9ded0c2ea883a65 /src/video_core | |
parent | Merge pull request #4217 from lioncash/prototype (diff) | |
parent | maxwell_to_gl: Implement MirrorOnceClampOGL using GL_MIRROR_CLAMP_EXT (diff) | |
download | yuzu-c58e21cd767e7b23d9e71795265456cc1ed13f48.tar yuzu-c58e21cd767e7b23d9e71795265456cc1ed13f48.tar.gz yuzu-c58e21cd767e7b23d9e71795265456cc1ed13f48.tar.bz2 yuzu-c58e21cd767e7b23d9e71795265456cc1ed13f48.tar.lz yuzu-c58e21cd767e7b23d9e71795265456cc1ed13f48.tar.xz yuzu-c58e21cd767e7b23d9e71795265456cc1ed13f48.tar.zst yuzu-c58e21cd767e7b23d9e71795265456cc1ed13f48.zip |
Diffstat (limited to 'src/video_core')
-rw-r--r-- | src/video_core/renderer_opengl/maxwell_to_gl.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/video_core/renderer_opengl/maxwell_to_gl.h b/src/video_core/renderer_opengl/maxwell_to_gl.h index 774e70a5b..fe9bd4b5a 100644 --- a/src/video_core/renderer_opengl/maxwell_to_gl.h +++ b/src/video_core/renderer_opengl/maxwell_to_gl.h @@ -191,6 +191,12 @@ inline GLenum WrapMode(Tegra::Texture::WrapMode wrap_mode) { } else { return GL_MIRROR_CLAMP_TO_EDGE; } + case Tegra::Texture::WrapMode::MirrorOnceClampOGL: + if (GL_EXT_texture_mirror_clamp) { + return GL_MIRROR_CLAMP_EXT; + } else { + return GL_MIRROR_CLAMP_TO_EDGE; + } } UNIMPLEMENTED_MSG("Unimplemented texture wrap mode={}", static_cast<u32>(wrap_mode)); return GL_REPEAT; |