Commit 71af6ece authored by Dmitry Kazakov's avatar Dmitry Kazakov

Fix transparent canvas on older Qt (Qt 5.9.7)

This version of Qt is still used in distribution
packages of Krita.

BUG:408225
parent 69f91f70
......@@ -212,7 +212,11 @@ void KisOpenGLModeProber::initSurfaceFormatFromConfig(KisConfig::RootSurfaceForm
format->setRedBufferSize(8);
format->setGreenBufferSize(8);
format->setBlueBufferSize(8);
#if QT_VERSION >= QT_VERSION_CHECK(5, 10, 0)
format->setAlphaBufferSize(8);
#else
format->setAlphaBufferSize(0);
#endif
#if QT_VERSION >= QT_VERSION_CHECK(5, 10, 0)
// TODO: check if we can use real sRGB space here
......
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