qt/opengl: fixed bug that caused black screen on some platforms

This commit is contained in:
itsmattkc
2020-02-21 18:21:07 +11:00
parent 5602b6a88b
commit 04759b88cf
+2 -2
View File
@@ -40,9 +40,9 @@ extern "C" {
int main(int argc, char *argv[]) {
av_log_set_level(AV_LOG_QUIET);
// Set OpenGL display profile (3.0 Core)
// Set OpenGL display profile (3.2 Core)
QSurfaceFormat format;
format.setVersion(3, 0);
format.setVersion(3, 2);
format.setDepthBufferSize(24);
format.setProfile(QSurfaceFormat::CoreProfile);
QSurfaceFormat::setDefaultFormat(format);