mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2024-11-27 10:24:21 +01:00
gl_texture_cache: Do not set texture parameters to buffers
This commit is contained in:
parent
73b2dc6d4f
commit
84027f4808
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user