1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-09-15 15:02:34 +02:00

Don't draw asterisks in subtitles (#510)

Don't draw asterisks in subtitles
This commit is contained in:
NFSMONSTR 2018-06-09 18:23:16 +03:00 committed by darkf
parent e17f17cbce
commit 85785b04e0

View File

@ -141,6 +141,9 @@ void TextRenderer::setFontTexture(int index, const std::string& texture) {
void TextRenderer::renderText(const TextRenderer::TextInfo& ti,
bool forceColour) {
if (ti.text.empty() || ti.text[0] == '*')
return;
renderer->getRenderer()->pushDebugGroup("Text");
renderer->getRenderer()->useProgram(textShader.get());