diff options
| author | 2019-07-18 01:06:26 -0300 | |
|---|---|---|
| committer | 2019-07-18 01:06:26 -0300 | |
| commit | 84027f480811a3cfbe1a5f526f401aec8b5eb533 (patch) | |
| tree | 6e600f90185f01727adff67bd39804995bce52f8 | |
| parent | gl_texture_cache: Add missing break in CreateTexture (diff) | |
| download | yuzu-84027f480811a3cfbe1a5f526f401aec8b5eb533.tar.gz yuzu-84027f480811a3cfbe1a5f526f401aec8b5eb533.tar.xz yuzu-84027f480811a3cfbe1a5f526f401aec8b5eb533.zip | |
gl_texture_cache: Do not set texture parameters to buffers
| -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) { | |||
| 185 | } | 185 | } |
| 186 | 186 | ||
| 187 | void ApplyTextureDefaults(const SurfaceParams& params, GLuint texture) { | 187 | void ApplyTextureDefaults(const SurfaceParams& params, GLuint texture) { |
| 188 | if (params.IsBuffer()) { | ||
| 189 | return; | ||
| 190 | } | ||
| 188 | glTextureParameteri(texture, GL_TEXTURE_MIN_FILTER, GL_LINEAR); | 191 | glTextureParameteri(texture, GL_TEXTURE_MIN_FILTER, GL_LINEAR); |
| 189 | glTextureParameteri(texture, GL_TEXTURE_MAG_FILTER, GL_LINEAR); | 192 | glTextureParameteri(texture, GL_TEXTURE_MAG_FILTER, GL_LINEAR); |
| 190 | glTextureParameteri(texture, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE); | 193 | glTextureParameteri(texture, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE); |