summaryrefslogtreecommitdiffstats
path: root/Project/TransferFunction.cpp
diff options
context:
space:
mode:
authorThales Lima <thaleslima.ufu@gmail.com>2017-10-25 19:17:00 -0200
committerThales Lima <thaleslima.ufu@gmail.com>2017-10-25 19:17:00 -0200
commit7043bf93567689f3b1304cc998c1fb09b7e0e357 (patch)
tree4d6ca5dd407d0f729e7413ddd62d26b25beabfca /Project/TransferFunction.cpp
parentc53fc819fe6dfe15dc3083b71e0161a68c8b32b5 (diff)
downloadPSP.git-7043bf93567689f3b1304cc998c1fb09b7e0e357.tar.gz
PSP.git-7043bf93567689f3b1304cc998c1fb09b7e0e357.tar.xz
PSP.git-7043bf93567689f3b1304cc998c1fb09b7e0e357.zip
Fixed textures bug on linux
Diffstat (limited to 'Project/TransferFunction.cpp')
-rw-r--r--Project/TransferFunction.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/Project/TransferFunction.cpp b/Project/TransferFunction.cpp
index c932608..e4c8a4e 100644
--- a/Project/TransferFunction.cpp
+++ b/Project/TransferFunction.cpp
@@ -373,3 +373,11 @@ Element* TransferFunction::GetCopy()
copy->m_glTextDen = m_glTextDen->GetCopy();
return copy;
}
+
+bool TransferFunction::UpdateText()
+{
+ UpdateTFText();
+ if(!m_glTextDen->IsTextureOK()) return false;
+ if(!m_glTextNum->IsTextureOK()) return false;
+ return true;
+}