diff --git a/Pdf4QtLib/sources/pdfdrawspacecontroller.cpp b/Pdf4QtLib/sources/pdfdrawspacecontroller.cpp index f3830cb..9900839 100644 --- a/Pdf4QtLib/sources/pdfdrawspacecontroller.cpp +++ b/Pdf4QtLib/sources/pdfdrawspacecontroller.cpp @@ -1329,7 +1329,7 @@ void PDFDrawWidgetProxy::updateRenderer(bool useOpenGL, const QSurfaceFormat& su { m_useOpenGL = useOpenGL; m_surfaceFormat = surfaceFormat; - m_rasterizer->reset(useOpenGL, surfaceFormat); + m_rasterizer->reset(useOpenGL && ENABLE_OPENGL_FOR_THUMBNAILS, surfaceFormat); } void PDFDrawWidgetProxy::prefetchPages(PDFInteger pageIndex) diff --git a/Pdf4QtLib/sources/pdfdrawspacecontroller.h b/Pdf4QtLib/sources/pdfdrawspacecontroller.h index b234a58..e1d2be6 100644 --- a/Pdf4QtLib/sources/pdfdrawspacecontroller.h +++ b/Pdf4QtLib/sources/pdfdrawspacecontroller.h @@ -471,6 +471,8 @@ private: constexpr inline T bound(T value) { return qBound(min, value, max); } }; + static constexpr bool ENABLE_OPENGL_FOR_THUMBNAILS = false; + /// Flag, disables the update bool m_updateDisabled;