summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRodolfo Bogado <rodolfoosvaldobogado@gmail.com>2018-11-14 01:26:29 +0100
committerRodolfo Bogado <rodolfoosvaldobogado@gmail.com>2018-11-17 23:59:33 +0100
commit02c22a3440cbb9d264a1d260a93601f5b893c64c (patch)
tree11fa23452713509612e8525ed32b39a15af67ea9
parentset border color not depending on the wrap mode (diff)
downloadyuzu-02c22a3440cbb9d264a1d260a93601f5b893c64c.tar
yuzu-02c22a3440cbb9d264a1d260a93601f5b893c64c.tar.gz
yuzu-02c22a3440cbb9d264a1d260a93601f5b893c64c.tar.bz2
yuzu-02c22a3440cbb9d264a1d260a93601f5b893c64c.tar.lz
yuzu-02c22a3440cbb9d264a1d260a93601f5b893c64c.tar.xz
yuzu-02c22a3440cbb9d264a1d260a93601f5b893c64c.tar.zst
yuzu-02c22a3440cbb9d264a1d260a93601f5b893c64c.zip
-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 3ce2cc6d2..065b3929c 100644
--- a/src/video_core/renderer_opengl/maxwell_to_gl.h
+++ b/src/video_core/renderer_opengl/maxwell_to_gl.h
@@ -180,6 +180,12 @@ inline GLenum WrapMode(Tegra::Texture::WrapMode wrap_mode) {
return GL_CLAMP_TO_BORDER;
case Tegra::Texture::WrapMode::MirrorOnceClampToEdge:
return GL_MIRROR_CLAMP_TO_EDGE;
+ case Tegra::Texture::WrapMode::MirrorOnceBorder:
+ if (GL_EXT_texture_mirror_clamp) {
+ return GL_MIRROR_CLAMP_TO_BORDER_EXT;
+ } else {
+ return GL_MIRROR_CLAMP_TO_EDGE;
+ }
}
LOG_ERROR(Render_OpenGL, "Unimplemented texture wrap mode={}", static_cast<u32>(wrap_mode));
return GL_REPEAT;