Skip to content

Enable OpenGL3 on Windows#3166

Open
melted wants to merge 1 commit intofactor:masterfrom
melted:ogl3-fix
Open

Enable OpenGL3 on Windows#3166
melted wants to merge 1 commit intofactor:masterfrom
melted:ogl3-fix

Conversation

@melted
Copy link
Copy Markdown
Contributor

@melted melted commented Dec 26, 2025

OpenGL interprets the spare channel in the BGRX bitmap from uniscribe as an alpha channel, which makes most text in the UI disappear. This commit fills it with 0xff to make it opaque if interpreted like that. A more principled fix might be to convince OpenGL to ignore the channel.

OpenGL interprets the spare channel in the BGRX bitmap from uniscribe as
an alpha channel, which makes most text in the UI disappear. This commit
 fills it with 0xff to make it opaque if interpreted like that.

A more principled fix might be to convince OpenGL to ignore the channel.
@zolk3ri
Copy link
Copy Markdown
Contributor

zolk3ri commented Dec 27, 2025

GL_TEXTURE_SWIZZLE_A set to GL_ONE at texture setup could achieve the same without per-bitmap mutation, AFAIK. I do not have Windows, so I cannot test.

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