Skip to content
Permalink
Browse files

fix QAbstractTextureImage shared

  • Loading branch information
vcloarec authored and PeterPetrik committed Mar 10, 2020
1 parent f26f196 commit c2f29003845c58028997fcd2180ea85890174d22
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/3d/mesh/qgsmesh3dmaterial_p.cpp
@@ -371,7 +371,7 @@ void QgsMesh3dMaterial::configureArrows( QgsMeshLayer *layer )
arrowsGridTexture->setMagnificationFilter( Qt3DRender::QTexture2D::Nearest );

Qt3DRender::QTexture2D *arrowTexture = new Qt3DRender::QTexture2D( this );
Qt3DRender::QTextureImage *arrowTextureImage = new Qt3DRender::QTextureImage( this );
Qt3DRender::QTextureImage *arrowTextureImage = new Qt3DRender::QTextureImage();
arrowTextureImage->setSource( QStringLiteral( "qrc:/textures/arrow.png" ) );
arrowTexture->addTextureImage( arrowTextureImage );
arrowTexture->setMinificationFilter( Qt3DRender::QTexture2D::Nearest );

0 comments on commit c2f2900

Please sign in to comment.
You can’t perform that action at this time.