8000 Enable OpenGL3 on Windows by melted · Pull Request #3166 · factor/factor · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@melted
Copy link
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
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

0