Fix transferfunction usage so it binds texture

This commit is contained in:
Jonathan Grangien
2018-05-04 14:53:04 -04:00
parent c3d0267211
commit 58f563ffae
8 changed files with 17 additions and 24 deletions

View File

@@ -113,11 +113,6 @@ void TransferFunctionHandler::initialize() {
_saveTransferFunction.onChange([this]() {
saveEnvelopes();
});
// Use core package tf as well
_transferFunction->updateTexture();
LINFOC("TF_HANDLER", "handler initialized");
}
void TransferFunctionHandler::setHistogramProperty(std::shared_ptr<openspace::Histogram> histogram) {
@@ -162,7 +157,7 @@ void TransferFunctionHandler::saveEnvelopes() {
void TransferFunctionHandler::setFilepath(const std::string& path) {
_filePath = path;
// _transferFunction->updateTexture();
// _transferFunction->update();
}
ghoul::opengl::Texture& TransferFunctionHandler::getTexture() {