diff options
| author | 2018-08-19 13:59:41 -0400 | |
|---|---|---|
| committer | 2018-08-19 13:59:41 -0400 | |
| commit | b0eb580931f9d7bf22d36cefc6aaea82b25236f8 (patch) | |
| tree | 677716069940936f7102608628f6b43de5c9c1df /src/video_core | |
| parent | Merge pull request #1101 from Subv/ssy_stack (diff) | |
| parent | Added check to see if ARB_texture_mirror_clamp_to_edge is supported (diff) | |
| download | yuzu-b0eb580931f9d7bf22d36cefc6aaea82b25236f8.tar.gz yuzu-b0eb580931f9d7bf22d36cefc6aaea82b25236f8.tar.xz yuzu-b0eb580931f9d7bf22d36cefc6aaea82b25236f8.zip | |
Merge pull request #1102 from ogniK5377/mirror-clamp-edge
Added WrapMode MirrorOnceClampToEdge
Diffstat (limited to 'src/video_core')
| -rw-r--r-- | src/video_core/renderer_opengl/maxwell_to_gl.h | 2 |
1 files changed, 2 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 8f719fdd8..5d91a0c2f 100644 --- a/src/video_core/renderer_opengl/maxwell_to_gl.h +++ b/src/video_core/renderer_opengl/maxwell_to_gl.h | |||
| @@ -147,6 +147,8 @@ inline GLenum WrapMode(Tegra::Texture::WrapMode wrap_mode) { | |||
| 147 | // GL_CLAMP_TO_BORDER to get the border color of the texture, and then sample the edge to | 147 | // GL_CLAMP_TO_BORDER to get the border color of the texture, and then sample the edge to |
| 148 | // manually mix them. However the shader part of this is not yet implemented. | 148 | // manually mix them. However the shader part of this is not yet implemented. |
| 149 | return GL_CLAMP_TO_BORDER; | 149 | return GL_CLAMP_TO_BORDER; |
| 150 | case Tegra::Texture::WrapMode::MirrorOnceClampToEdge: | ||
| 151 | return GL_MIRROR_CLAMP_TO_EDGE; | ||
| 150 | } | 152 | } |
| 151 | LOG_CRITICAL(Render_OpenGL, "Unimplemented texture wrap mode={}", static_cast<u32>(wrap_mode)); | 153 | LOG_CRITICAL(Render_OpenGL, "Unimplemented texture wrap mode={}", static_cast<u32>(wrap_mode)); |
| 152 | UNREACHABLE(); | 154 | UNREACHABLE(); |