mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 13:47:58 +03:00
Fix font rendering
This commit is contained in:
parent
7e150c7a8a
commit
954d096261
1 changed files with 5 additions and 2 deletions
|
@ -535,8 +535,8 @@ void R_LoadFontShader(fontheader_sgl_t* font)
|
|||
{
|
||||
if (fontshader->stages[0] != NULL && fontshader->stages[0]->active)
|
||||
{
|
||||
fontshader->stages[0]->rgbGen = CGEN_GLOBAL_COLOR;
|
||||
fontshader->stages[0]->alphaGen = AGEN_GLOBAL_ALPHA;
|
||||
fontshader->stages[0]->rgbGen = CGEN_ENTITY;
|
||||
fontshader->stages[0]->alphaGen = AGEN_ENTITY;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -585,6 +585,9 @@ void R_DrawString_sgl(fontheader_sgl_t* font, const char* text, float x, float y
|
|||
R_LoadFontShader(font);
|
||||
}
|
||||
|
||||
Vector4Copy(backEnd.color2D, backEnd.entity2D.e.shaderRGBA);
|
||||
backEnd.currentEntity = &backEnd.entity2D;
|
||||
|
||||
charHeight = s_fontHeightScale * font->height * s_fontGeneralScale;
|
||||
RB_BeginSurface((shader_t*)font->shader, 0, 0);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue