From: jfa Date: Tue, 4 May 2021 13:41:10 +0000 (+0300) Subject: Bos #24226, pb #3: Clipping faces texture is lost. X-Git-Tag: V9_7_0rc1~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9f3acb9230f025863cce18d4c865c1227ea97afc;p=modules%2Fgui.git Bos #24226, pb #3: Clipping faces texture is lost. --- diff --git a/src/OCCViewer/OCCViewer_Utilities.cxx b/src/OCCViewer/OCCViewer_Utilities.cxx index d57f33785..506b9dc15 100644 --- a/src/OCCViewer/OCCViewer_Utilities.cxx +++ b/src/OCCViewer/OCCViewer_Utilities.cxx @@ -43,7 +43,9 @@ Handle(Image_PixMap) OCCViewer_Utilities::imageToPixmap( const QImage& anImage ) Handle(Image_PixMap) aPixmap = new Image_PixMap(); if ( !anImage.isNull() ) { aPixmap->InitTrash( Image_PixMap::ImgBGRA, anImage.width(), anImage.height() ); +#if OCC_VERSION_LARGE < 0x07050000 aPixmap->SetTopDown( Standard_True ); +#endif const uchar* aImageBytes = anImage.bits();