OPENGLOSD: early break on no text draw

This commit is contained in:
jojo61 2023-05-25 13:57:15 +02:00
parent ad7acde1f4
commit 7f054f8320
1 changed files with 1 additions and 1 deletions

View File

@ -1179,7 +1179,7 @@ cOglCmdDrawText::~cOglCmdDrawText(void) { free(symbols); }
bool cOglCmdDrawText::Execute(void) {
cOglFont *f = cOglFont::Get(*fontName, fontSize);
if (!f)
if (!f || !symbols[0])
return false;
VertexBuffers[vbText]->ActivateShader();