mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-10-20 01:17:49 +00:00
gl_texture_cache: Do not set texture parameters to buffers
This commit is contained in:
parent
4f332abb1a
commit
67843df9f6
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue