diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-07-18 06:06:26 +0200 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-07-18 06:06:26 +0200 |
commit | 84027f480811a3cfbe1a5f526f401aec8b5eb533 (patch) | |
tree | 6e600f90185f01727adff67bd39804995bce52f8 | |
parent | gl_texture_cache: Add missing break in CreateTexture (diff) | |
download | yuzu-84027f480811a3cfbe1a5f526f401aec8b5eb533.tar yuzu-84027f480811a3cfbe1a5f526f401aec8b5eb533.tar.gz yuzu-84027f480811a3cfbe1a5f526f401aec8b5eb533.tar.bz2 yuzu-84027f480811a3cfbe1a5f526f401aec8b5eb533.tar.lz yuzu-84027f480811a3cfbe1a5f526f401aec8b5eb533.tar.xz yuzu-84027f480811a3cfbe1a5f526f401aec8b5eb533.tar.zst yuzu-84027f480811a3cfbe1a5f526f401aec8b5eb533.zip |
-rw-r--r-- | src/video_core/renderer_opengl/gl_texture_cache.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/video_core/renderer_opengl/gl_texture_cache.cpp b/src/video_core/renderer_opengl/gl_texture_cache.cpp index 4a7f8ae3a..a848d0761 100644 --- a/src/video_core/renderer_opengl/gl_texture_cache.cpp +++ b/src/video_core/renderer_opengl/gl_texture_cache.cpp @@ -185,6 +185,9 @@ GLint GetSwizzleSource(SwizzleSource source) { } void ApplyTextureDefaults(const SurfaceParams& params, GLuint texture) { + if (params.IsBuffer()) { + return; + } glTextureParameteri(texture, GL_TEXTURE_MIN_FILTER, GL_LINEAR); glTextureParameteri(texture, GL_TEXTURE_MAG_FILTER, GL_LINEAR); glTextureParameteri(texture, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE); |