Commit 00fb1483 authored by Dmitry Kazakov's avatar Dmitry Kazakov

Make Angle preferred renderer on Windows

This patch bascially overrides Qt's choice of preferred renderer

CCBUG:415772
parent 9f98ec4a
......@@ -749,10 +749,19 @@ KisOpenGL::RendererConfig KisOpenGL::selectSurfaceConfig(KisOpenGL::OpenGLRender
const OpenGLRenderer defaultRenderer = getRendererFromProbeResult(*info);
/**
* On Windows we always prefer Angle, not what Qt suggests us
*/
#ifdef Q_OS_WIN
const OpenGLRenderer preferredAutoRenderer = RendererOpenGLES;
#else
const OpenGLRenderer preferredAutoRenderer = defaultRenderer;
#endif
OpenGLRenderers supportedRenderers = RendererNone;
FormatPositionLess compareOp;
compareOp.setPreferredRendererByQt(defaultRenderer);
compareOp.setPreferredRendererByQt(preferredAutoRenderer);
#ifdef HAVE_HDR
compareOp.setPreferredColorSpace(
......@@ -794,7 +803,7 @@ KisOpenGL::RendererConfig KisOpenGL::selectSurfaceConfig(KisOpenGL::OpenGLRender
}
}
OpenGLRenderer preferredByQt = defaultRenderer;
OpenGLRenderer preferredByQt = preferredAutoRenderer;
if (preferredByQt == RendererDesktopGL &&
supportedRenderers & RendererDesktopGL &&
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment