mirror of
https://github.com/barry-ran/QtScrcpy.git
synced 2025-08-02 05:48:38 +00:00
feat: update qt opengl
This commit is contained in:
parent
610175c5ac
commit
be77d61eeb
1 changed files with 9 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
||||||
#include <QCoreApplication>
|
#include <QCoreApplication>
|
||||||
#include <QOpenGLTexture>
|
#include <QOpenGLTexture>
|
||||||
|
#include <QSurfaceFormat>
|
||||||
|
|
||||||
#include "qyuvopenglwidget.h"
|
#include "qyuvopenglwidget.h"
|
||||||
|
|
||||||
|
@ -64,7 +65,14 @@ static QString s_fragShader = R"(
|
||||||
|
|
||||||
QYUVOpenGLWidget::QYUVOpenGLWidget(QWidget *parent) : QOpenGLWidget(parent)
|
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()
|
QYUVOpenGLWidget::~QYUVOpenGLWidget()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue