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

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;
const OpenGLRenderer preferredAutoRenderer = defaultRenderer;
OpenGLRenderers supportedRenderers = RendererNone;
FormatPositionLess compareOp;
#ifdef HAVE_HDR
......@@ -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