Fix bug in gfx_draw_glyph

blend_amap_color_shader now uses the alpha value.
This commit is contained in:
Nunuhara Cabbage
2022-04-29 18:13:22 -07:00
parent f7b6da9679
commit f2dd4def12
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -798,6 +798,7 @@ void gfx_draw_glyph(Texture *dst, float dx, int dy, Texture *glyph, SDL_Color co
data.r = color.r / 255.0;
data.g = color.g / 255.0;
data.b = color.b / 255.0;
data.a = 1.0;
if (bold_width < 0.01) {
run_copy_shader(&blend_amap_color_shader.s, dst, glyph, &data);