From 7043bf93567689f3b1304cc998c1fb09b7e0e357 Mon Sep 17 00:00:00 2001 From: Thales Lima Date: Wed, 25 Oct 2017 19:17:00 -0200 Subject: Fixed textures bug on linux --- Project/Text.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'Project/Text.cpp') diff --git a/Project/Text.cpp b/Project/Text.cpp index 3e0eb1c..fd1d986 100644 --- a/Project/Text.cpp +++ b/Project/Text.cpp @@ -926,4 +926,13 @@ Element* Text::GetCopy() } copy->m_openGLTextList = copyList; return copy; -} \ No newline at end of file +} + +bool Text::IsGLTextOK() +{ + bool isOk = true; + for(auto it = m_openGLTextList.begin(), itEnd = m_openGLTextList.end(); it != itEnd; ++it) { + if(!(*it)->IsTextureOK()) isOk = false; + } + return isOk; +} -- cgit