Skip to content
Snippets Groups Projects
Commit 84027f48 authored by ReinUsesLisp's avatar ReinUsesLisp
Browse files

gl_texture_cache: Do not set texture parameters to buffers

parent 73b2dc6d
No related branches found
No related tags found
No related merge requests found
...@@ -185,6 +185,9 @@ GLint GetSwizzleSource(SwizzleSource source) { ...@@ -185,6 +185,9 @@ GLint GetSwizzleSource(SwizzleSource source) {
} }
void ApplyTextureDefaults(const SurfaceParams& params, GLuint texture) { void ApplyTextureDefaults(const SurfaceParams& params, GLuint texture) {
if (params.IsBuffer()) {
return;
}
glTextureParameteri(texture, GL_TEXTURE_MIN_FILTER, GL_LINEAR); glTextureParameteri(texture, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
glTextureParameteri(texture, GL_TEXTURE_MAG_FILTER, GL_LINEAR); glTextureParameteri(texture, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
glTextureParameteri(texture, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE); glTextureParameteri(texture, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment