Skip to content

Commit d201c1c

Browse files
committed
Disable OpenGLFunctions::requestMinimumFormat on Windows
1 parent 1e3e331 commit d201c1c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

source/app/rendering/openglfunctions.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,15 @@ QSurfaceFormat OpenGLFunctions::minimumFormat()
5959

6060
void OpenGLFunctions::requestMinimumFormat()
6161
{
62+
#ifndef Q_OS_WIN // For reasons not understood, this causes problems on Windows
6263
const auto defaultFormat = QSurfaceFormat::defaultFormat();
6364
const std::pair<int, int> defaultVersion = {defaultFormat.majorVersion(), defaultFormat.minorVersion()};
6465
const auto requestFormat = minimumFormat();
6566
const std::pair<int, int> requestVersion = {requestFormat.majorVersion(), requestFormat.minorVersion()};
6667

6768
if(defaultVersion < requestVersion)
6869
QSurfaceFormat::setDefaultFormat(requestFormat);
70+
#endif
6971
}
7072

7173
class QueryFunctions

0 commit comments

Comments
 (0)