Diffusion Krita 6384d4aa82e0

Imeplemented automatic selection of a renderer and/or surface format

Authored by dkazakov on Jan 26 2019, 4:23 PM.

Description

Imeplemented automatic selection of a renderer and/or surface format

This patch generalizes the thing previously implemented in kis_opengl_win
by Alvin Wong long ago.

The algorithm is based on two finctions: KisOpenGL::selectSurfaceFormat()
and KisOpenGLModeProber::probeFormat(). The former one generates the full
list of all possible renderer/format combinations, then sorts it according
to user's preferences and HDR necessity, then probes every resulting format
with the latter function. As soon as it finds a format that fits the
requirements, it makes this format default for the root surface of the
application.

Details

Committed
dkazakovJan 26 2019, 4:23 PM
Parents
R37:8f6684f1fe61: Remove extra debugging lines
Branches
Unknown
Tags
Unknown