From 7f054f83205f31b527d138ac2ea146612a286166 Mon Sep 17 00:00:00 2001 From: jojo61 Date: Thu, 25 May 2023 13:57:15 +0200 Subject: [PATCH] OPENGLOSD: early break on no text draw --- openglosd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openglosd.cpp b/openglosd.cpp index a6b14df..0633196 100644 --- a/openglosd.cpp +++ b/openglosd.cpp @@ -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();