Skip to content

Commit

Permalink
have renderttf use color coordinates in rgb order for #199
Browse files Browse the repository at this point in the history
  • Loading branch information
no-lex committed Oct 26, 2022
1 parent d99dff4 commit 4647d78
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/engine/render/renderttf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ TTFRenderer::TTFSurface TTFRenderer::renderttfgl(const char* message, SDL_Color
return {0, 0, 0};
}
GLuint tex = 0;
SDL_Surface* text = TTF_RenderUTF8_Blended_Wrapped(f, message, col, wrap);
SDL_Color rgbcol = {col.b, col.g, col.r, 0};
SDL_Surface* text = TTF_RenderUTF8_Blended_Wrapped(f, message, rgbcol, wrap);
if(text)
{
glEnable(GL_BLEND);
Expand Down

0 comments on commit 4647d78

Please sign in to comment.