summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Rodrigo Locatti2020-07-02 04:57:40 -0300
committerGravatar GitHub2020-07-02 04:57:40 -0300
commitc58e21cd767e7b23d9e71795265456cc1ed13f48 (patch)
tree78d25a93e3c4138caeccaa1fe9ded0c2ea883a65
parentMerge pull request #4217 from lioncash/prototype (diff)
parentmaxwell_to_gl: Implement MirrorOnceClampOGL using GL_MIRROR_CLAMP_EXT (diff)
downloadyuzu-c58e21cd767e7b23d9e71795265456cc1ed13f48.tar.gz
yuzu-c58e21cd767e7b23d9e71795265456cc1ed13f48.tar.xz
yuzu-c58e21cd767e7b23d9e71795265456cc1ed13f48.zip
Merge pull request #4082 from Morph1984/mirror-once-clamp
maxwell_to_gl: Implement MirrorOnceClampOGL wrap mode using GL_MIRROR_CLAMP_EXT
-rw-r--r--src/video_core/renderer_opengl/maxwell_to_gl.h6
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) {
191 } else { 191 } else {
192 return GL_MIRROR_CLAMP_TO_EDGE; 192 return GL_MIRROR_CLAMP_TO_EDGE;
193 } 193 }
194 case Tegra::Texture::WrapMode::MirrorOnceClampOGL:
195 if (GL_EXT_texture_mirror_clamp) {
196 return GL_MIRROR_CLAMP_EXT;
197 } else {
198 return GL_MIRROR_CLAMP_TO_EDGE;
199 }
194 } 200 }
195 UNIMPLEMENTED_MSG("Unimplemented texture wrap mode={}", static_cast<u32>(wrap_mode)); 201 UNIMPLEMENTED_MSG("Unimplemented texture wrap mode={}", static_cast<u32>(wrap_mode));
196 return GL_REPEAT; 202 return GL_REPEAT;