Skip to content

Commit

Permalink
Avoid crash on MacOS
Browse files Browse the repository at this point in the history
Signed-off-by: ahcorde <[email protected]>
  • Loading branch information
ahcorde committed Dec 10, 2020
1 parent cc8d8e6 commit c540bb3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/plugins/scene3d/Scene3D.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1101,8 +1101,9 @@ TextureNode::TextureNode(QQuickWindow *_window)
#if QT_VERSION < QT_VERSION_CHECK(5, 14, 0)
this->texture = this->window->createTextureFromId(0, QSize(1, 1));
#else
void * nativeLayout;
this->texture = this->window->createTextureFromNativeObject(
QQuickWindow::NativeObjectTexture, nullptr, 0, QSize(1, 1),
QQuickWindow::NativeObjectTexture, &nativeLayout, 0, QSize(1, 1),
QQuickWindow::TextureIsOpaque);
#endif
this->setTexture(this->texture);
Expand Down

0 comments on commit c540bb3

Please sign in to comment.