diff options
author | Thales Lima <thaleslima.ufu@gmail.com> | 2017-10-25 19:17:00 -0200 |
---|---|---|
committer | Thales Lima <thaleslima.ufu@gmail.com> | 2017-10-25 19:17:00 -0200 |
commit | 7043bf93567689f3b1304cc998c1fb09b7e0e357 (patch) | |
tree | 4d6ca5dd407d0f729e7413ddd62d26b25beabfca /Project/Text.cpp | |
parent | c53fc819fe6dfe15dc3083b71e0161a68c8b32b5 (diff) | |
download | PSP.git-7043bf93567689f3b1304cc998c1fb09b7e0e357.tar.gz PSP.git-7043bf93567689f3b1304cc998c1fb09b7e0e357.tar.xz PSP.git-7043bf93567689f3b1304cc998c1fb09b7e0e357.zip |
Fixed textures bug on linux
Diffstat (limited to 'Project/Text.cpp')
-rw-r--r-- | Project/Text.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
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; +} |