mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-04-21 01:59:15 -05:00
remove thread and called update texture in textureplane constructor
This commit is contained in:
@@ -52,6 +52,8 @@ TexturePlane::TexturePlane()
|
||||
_fileExtension = ISWAManager::ref().fileExtension(_cygnetId.value());
|
||||
_path = "${OPENSPACE_DATA}/"+ name()+_fileExtension;
|
||||
|
||||
updateTexture();
|
||||
|
||||
_cygnetId.onChange([this](){
|
||||
_fileExtension = ISWAManager::ref().fileExtension(_cygnetId.value());
|
||||
_path = "${OPENSPACE_DATA}/"+ name()+_fileExtension;
|
||||
@@ -69,9 +71,6 @@ bool TexturePlane::initialize(){
|
||||
_pscOffset = glm::vec4(0, 0, 0, 1);
|
||||
|
||||
CygnetPlane::initialize();
|
||||
|
||||
std::thread t = std::thread(std::bind(&TexturePlane::updateTexture, this));
|
||||
t.detach();
|
||||
|
||||
loadTexture();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user