Skip to content

Commit

Permalink
Incorect capture
Browse files Browse the repository at this point in the history
  • Loading branch information
afichet committed Sep 10, 2021
1 parent 99479a0 commit adb6daf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/model/framebuffer/RGBFramebufferModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ RGBFramebufferModel::~RGBFramebufferModel() {}
void RGBFramebufferModel::load(
Imf::MultiPartInputFile &file, int partId, bool hasAlpha)
{
QFuture<void> imageLoading = QtConcurrent::run([&]() {
QFuture<void> imageLoading = QtConcurrent::run([this, &file, partId, hasAlpha]() {
try {
Imf::InputPart part(file, partId);

Expand Down
2 changes: 1 addition & 1 deletion src/model/framebuffer/YFramebufferModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ YFramebufferModel::~YFramebufferModel()

void YFramebufferModel::load(Imf::MultiPartInputFile &file, int partId)
{
QFuture<void> imageLoading = QtConcurrent::run([&]() {
QFuture<void> imageLoading = QtConcurrent::run([this, &file, partId]() {
try {
Imf::InputPart part(file, partId);

Expand Down

0 comments on commit adb6daf

Please sign in to comment.