mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-10-15 06:16:11 +00:00
renderer: fix color glyph rendering under OpenGL
Also changes color atlas to always use an sRGB internal format so that the texture reads automatically linearize the colors. Renames the misleading `rgba` atlas format to `bgra`, since both FreeType and CoreText are set up to draw color glyphs in bgra.
This commit is contained in:
@@ -336,7 +336,7 @@ pub fn Renderer(comptime GraphicsAPI: type) type {
|
||||
const color = try api.initAtlasTexture(&.{
|
||||
.data = undefined,
|
||||
.size = 1,
|
||||
.format = .rgba,
|
||||
.format = .bgra,
|
||||
});
|
||||
errdefer color.deinit();
|
||||
|
||||
|
Reference in New Issue
Block a user