mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-23 23:45:46 +00:00
maxwell_to_gl: Implement Texture::WrapMode::Border.
This commit is contained in:
parent
c324ea103c
commit
a5062c345f
1 changed files with 2 additions and 0 deletions
|
@ -112,6 +112,8 @@ inline GLenum WrapMode(Tegra::Texture::WrapMode wrap_mode) {
|
|||
return GL_MIRRORED_REPEAT;
|
||||
case Tegra::Texture::WrapMode::ClampToEdge:
|
||||
return GL_CLAMP_TO_EDGE;
|
||||
case Tegra::Texture::WrapMode::Border:
|
||||
return GL_CLAMP_TO_BORDER;
|
||||
case Tegra::Texture::WrapMode::ClampOGL:
|
||||
// TODO(Subv): GL_CLAMP was removed as of OpenGL 3.1, to implement GL_CLAMP, we can use
|
||||
// GL_CLAMP_TO_BORDER to get the border color of the texture, and then sample the edge to
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue