diff options
| -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); |