mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-23 06:15:38 +00:00
GL/Texture: Don't set max level on GLES2
This commit is contained in:
parent
3f3607548f
commit
f0cb8cdc5c
|
@ -55,7 +55,9 @@ bool Texture::Create(u32 width, u32 height, u32 samples, GLenum internal_format,
|
|||
glTexParameteri(target, GL_TEXTURE_WRAP_T, wrap ? GL_REPEAT : GL_CLAMP_TO_EDGE);
|
||||
}
|
||||
|
||||
glTexParameteri(target, GL_TEXTURE_MAX_LEVEL, 1);
|
||||
// This doesn't exist on GLES2.
|
||||
if (!GLAD_GL_ES_VERSION_2_0 || GLAD_GL_ES_VERSION_3_0)
|
||||
glTexParameteri(target, GL_TEXTURE_MAX_LEVEL, 1);
|
||||
|
||||
GLenum error = glGetError();
|
||||
if (error != GL_NO_ERROR)
|
||||
|
|
Loading…
Reference in a new issue