Skip to content

Fix OpenGL renderer crash on GPUs without GL_EXT_unpack_subimage#79

Merged
peerless2012 merged 1 commit into
masterfrom
fix_overlay_texture
Jun 4, 2026
Merged

Fix OpenGL renderer crash on GPUs without GL_EXT_unpack_subimage#79
peerless2012 merged 1 commit into
masterfrom
fix_overlay_texture

Conversation

@peerless2012
Copy link
Copy Markdown
Owner

The native createTexture uses GL_UNPACK_ROW_LENGTH_EXT which requires the GL_EXT_unpack_subimage extension. On GPUs that don't support it (e.g. Mali-470), glPixelStorei produces a GL error that gets picked up by subsequent checkGlError calls, crashing the render thread.

Fix: detect extension support in onSurfaceCreated and fallback to BITMAP_ALPHA mode (upload via GlUtil.createTexture(bitmap)) when the extension is unavailable.

Also add ignore=dirty to libass-cmake submodule to suppress untracked build artifacts (fontconfig m4 files) from polluting git status.

Fixes: #78

The native createTexture uses GL_UNPACK_ROW_LENGTH_EXT which requires
the GL_EXT_unpack_subimage extension. On GPUs that don't support it
(e.g. Mali-470), glPixelStorei produces a GL error that gets picked up
by subsequent checkGlError calls, crashing the render thread.

Fix: detect extension support in onSurfaceCreated and fallback to
BITMAP_ALPHA mode (upload via GlUtil.createTexture(bitmap)) when the
extension is unavailable.

Also add ignore=dirty to libass-cmake submodule to suppress untracked
build artifacts (fontconfig m4 files) from polluting git status.

Fixes: #78
@peerless2012 peerless2012 merged commit fa36424 into master Jun 4, 2026
2 checks passed
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.

[OVERLAY_OPEN_GL] no Subtitles on TCL P8M

1 participant