hi, Kai, Many thanks for you help. I've changed the blacklist file like this, and it's solved my requires.
> diff --git a/src/plugins/platforms/windows/openglblacklists/default.json >> b/src/plugins/platforms/windows/openglblacklists/default.json > > index 1e00da5..a88de6e 100644 > > --- a/src/plugins/platforms/windows/openglblacklists/default.json > > +++ b/src/plugins/platforms/windows/openglblacklists/default.json > > @@ -28,7 +28,7 @@ > > }, > > "features": [ > > "disable_desktopgl", > > - "disable_angle" > > + "disable_d3d9" > > ] > > }, > > { > > @@ -64,7 +64,7 @@ > > "type": "win" > > }, > > "features": [ > > - "disable_desktopgl", "disable_angle" > > + "disable_desktopgl", "disable_d3d9" > > ] > > }, > > { > > @@ -88,7 +88,7 @@ > > "type": "win" > > }, > > "features": [ > > - "disable_angle" > > + "disable_d3d9" > > ] > > }, > > { > > @@ -100,7 +100,7 @@ > > "type": "win" > > }, > > "features": [ > > - "disable_desktopgl", "disable_d3d11", "disable_d3d9" > > + "disable_desktopgl", "disable_d3d9" > > ] > > } > > ] > > > 2017-03-21 16:09 GMT+08:00 Kai Koehne <kai.koe...@qt.io>: > > -----Original Message----- > > From: Interest [mailto:interest-bounces+kai.koehne=qt...@qt-project.org] > > On Behalf Of Yuchen Deng > > Sent: Tuesday, March 21, 2017 7:14 AM > > To: interest@qt-project.org > > Subject: [Interest] How to make WARP as fallback after d3d11 fails > > hi, everyone, I have a question about OpenGL support on Windows. How can > > I do make WARP as fallback after d3d11 fails. for now it's depends mesa's > > opengl32sw if angle's d3d11 fail. > > Hi! > > The code that implements this logic is in > > qtbase\src\plugins\platforms\windows\qwindowsopengltester.cpp > > ook at QWindowsOpenGLTester::requestedRenderer() and > QWindowsOpenGLTester::detectSupportedRenderers() > > https://code.woboq.org/qt5/qtbase/src/plugins/platforms/ > windows/qwindowsopengltester.cpp.html#_ZN20QWindowsOpenGLTester17requ > estedRendererEv > > > I know to change the environment variable `set QT_OPENGL=angle` and `set > > QT_ANGLE_PLATFORM=warp` can do that always, but I wanna when d3d11 > > fails then set WARP as fallback not depends any environment variable > setup. > > QWindowsOpenGLTester::detectSupportedRenderers() defines the order in > which the different OpenGL ES renderers on Windows are evaluated. It also > shows that there is a blacklist feature that disables certain types. So, if > you blacklist e.g. D3D9 Qt should directly fall back to D3d11Warp. > > https://code.woboq.org/qt5/qtbase/src/plugins/platforms/ > windows/qwindowsopengltester.cpp.html#_ZN20QWindowsOpenGLTester24dete > ctSupportedRenderersERK14GpuDescriptionb > > Hope this helps, > > Kai > -- Best Regards Yuchen
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest