diff options
| author | 2018-07-23 18:55:24 -0400 | |
|---|---|---|
| committer | 2018-07-23 23:34:41 -0400 | |
| commit | 6b3e54621f8f13a754fe4c600f281bd79a3243b9 (patch) | |
| tree | 0e24cb43a12f3b5da74d357dd11bec1a3b1b5e76 | |
| parent | Merge pull request #791 from bunnei/rg32f-rgba32f-bgra8 (diff) | |
| download | yuzu-6b3e54621f8f13a754fe4c600f281bd79a3243b9.tar.gz yuzu-6b3e54621f8f13a754fe4c600f281bd79a3243b9.tar.xz yuzu-6b3e54621f8f13a754fe4c600f281bd79a3243b9.zip | |
maxwell_to_gl: Implement Texture::WrapMode::Border.
| -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 e19c3b280..369bdd905 100644 --- a/src/video_core/renderer_opengl/maxwell_to_gl.h +++ b/src/video_core/renderer_opengl/maxwell_to_gl.h | |||
| @@ -112,6 +112,8 @@ inline GLenum WrapMode(Tegra::Texture::WrapMode wrap_mode) { | |||
| 112 | return GL_MIRRORED_REPEAT; | 112 | return GL_MIRRORED_REPEAT; |
| 113 | case Tegra::Texture::WrapMode::ClampToEdge: | 113 | case Tegra::Texture::WrapMode::ClampToEdge: |
| 114 | return GL_CLAMP_TO_EDGE; | 114 | return GL_CLAMP_TO_EDGE; |
| 115 | case Tegra::Texture::WrapMode::Border: | ||
| 116 | return GL_CLAMP_TO_BORDER; | ||
| 115 | case Tegra::Texture::WrapMode::ClampOGL: | 117 | case Tegra::Texture::WrapMode::ClampOGL: |
| 116 | // TODO(Subv): GL_CLAMP was removed as of OpenGL 3.1, to implement GL_CLAMP, we can use | 118 | // TODO(Subv): GL_CLAMP was removed as of OpenGL 3.1, to implement GL_CLAMP, we can use |
| 117 | // GL_CLAMP_TO_BORDER to get the border color of the texture, and then sample the edge to | 119 | // GL_CLAMP_TO_BORDER to get the border color of the texture, and then sample the edge to |