diff --git a/QtScrcpy/device/render/qyuvopenglwidget.cpp b/QtScrcpy/device/render/qyuvopenglwidget.cpp index 33c8788..c8fdf70 100644 --- a/QtScrcpy/device/render/qyuvopenglwidget.cpp +++ b/QtScrcpy/device/render/qyuvopenglwidget.cpp @@ -1,5 +1,6 @@ #include #include +#include #include "qyuvopenglwidget.h" @@ -64,7 +65,14 @@ static QString s_fragShader = R"( QYUVOpenGLWidget::QYUVOpenGLWidget(QWidget *parent) : QOpenGLWidget(parent) { - + /* + QSurfaceFormat format = QSurfaceFormat::defaultFormat(); + format.setColorSpace(QSurfaceFormat::sRGBColorSpace); + format.setProfile(QSurfaceFormat::CompatibilityProfile); + format.setMajorVersion(3); + format.setMinorVersion(2); + QSurfaceFormat::setDefaultFormat(format); + */ } QYUVOpenGLWidget::~QYUVOpenGLWidget()