Browse Source
Merge pull request #4082 from Morph1984/mirror-once-clamp
maxwell_to_gl: Implement MirrorOnceClampOGL wrap mode using GL_MIRROR_CLAMP_EXT
pull/15/merge
Rodrigo Locatti
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
6 additions and
0 deletions
-
src/video_core/renderer_opengl/maxwell_to_gl.h
|
|
@ -191,6 +191,12 @@ inline GLenum WrapMode(Tegra::Texture::WrapMode wrap_mode) { |
|
|
} else { |
|
|
} else { |
|
|
return GL_MIRROR_CLAMP_TO_EDGE; |
|
|
return GL_MIRROR_CLAMP_TO_EDGE; |
|
|
} |
|
|
} |
|
|
|
|
|
case Tegra::Texture::WrapMode::MirrorOnceClampOGL: |
|
|
|
|
|
if (GL_EXT_texture_mirror_clamp) { |
|
|
|
|
|
return GL_MIRROR_CLAMP_EXT; |
|
|
|
|
|
} else { |
|
|
|
|
|
return GL_MIRROR_CLAMP_TO_EDGE; |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
UNIMPLEMENTED_MSG("Unimplemented texture wrap mode={}", static_cast<u32>(wrap_mode)); |
|
|
UNIMPLEMENTED_MSG("Unimplemented texture wrap mode={}", static_cast<u32>(wrap_mode)); |
|
|
return GL_REPEAT; |
|
|
return GL_REPEAT; |
|
|
|