Commit 14c6da9b authored by NICLAUSSE Nicolas's avatar NICLAUSSE Nicolas

fix for MacOS (do not accept BGR32 format)

parent 41519fef
......@@ -37,8 +37,6 @@ int main(int argc, char **argv)
qputenv("XDG_CURRENT_DESKTOP", "GNOME");
#endif
QSurfaceFormat::setDefaultFormat(QVTKOpenGLWidget::defaultFormat());
QApplication application(argc, argv);
application.setApplicationName("dtkVisualizationViewer");
application.setOrganizationName("inria");
......
......@@ -56,7 +56,6 @@ QList<QVideoFrame::PixelFormat> VideoFrameGrabber::supportedPixelFormats(QAbstra
return QList<QVideoFrame::PixelFormat>()
<< QVideoFrame::Format_ARGB32
<< QVideoFrame::Format_ARGB32_Premultiplied
<< QVideoFrame::Format_RGB32
<< QVideoFrame::Format_RGB24
<< QVideoFrame::Format_RGB565
<< QVideoFrame::Format_RGB555
......
......@@ -13,7 +13,11 @@
class dtkWidgetsHUD;
class dtkWidgetsOverlayPane;
#if defined(Q_OS_MAC)
using ViewVideo = dtkVisualizationViewVideo;
#else
using ViewVideo = dtkVisualizationViewVideoGL;
#endif
class DTKVISUALIZATION_EXPORT dtkVisualizationViewVideoPlayer: public ViewVideo
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment