mirror of
https://github.com/overte-org/overte.git
synced 2025-04-16 13:56:24 +02:00
And another.
This commit is contained in:
parent
83d6f7f1e3
commit
bf31fc728a
1 changed files with 1 additions and 1 deletions
|
@ -363,7 +363,7 @@ void Font::drawString(gpu::Batch& batch, float x, float y, const QString& str, c
|
|||
batch._glUniform1i(_outlineLoc, (effectType == OUTLINE_EFFECT));
|
||||
|
||||
// need the gamma corrected color here
|
||||
glm::vec4 lrgba = glm::vec4(ColorUtils::tosRGBVec3(glm::vec3(*color)), color->a);
|
||||
glm::vec4 lrgba = ColorUtils::sRGBToLinearVec4(*color);
|
||||
batch._glUniform4fv(_colorLoc, 1, (const float*)&lrgba);
|
||||
|
||||
batch.setInputFormat(_format);
|
||||
|
|
Loading…
Reference in a new issue