Skip to content

Check if GLES2 Devices Support Mipmapping - #1408

Merged
complexlogic merged 1 commit into
masterfrom
mipmap_fix
Aug 23, 2026
Merged

Check if GLES2 Devices Support Mipmapping#1408
complexlogic merged 1 commit into
masterfrom
mipmap_fix

Conversation

@complexlogic

Copy link
Copy Markdown
Collaborator

In #1296, rounding up texture dimensions to power-of-two values was eliminated to save memory and also simplify the code. In #1213, support for mipmap textures was added.

OpenGL ES 2.0 drivers don't support mipmapping for non-power-of-two dimension textures. Only for power-of-two textures. So you have to pick one or the other. The exception is if the driver supports the extension GL_OES_texture_npot.

If the driver doesn't support mipmapping for NPOT textures and you attempt to generate mipmaps, you get a GL_INVALID_OPERATION error. This PR disables mipmapping for GLES2 devices that don't support the extension.

@complexlogic
complexlogic merged commit 22f3510 into master Aug 23, 2026
5 checks passed
@complexlogic
complexlogic deleted the mipmap_fix branch August 23, 2026 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants