Home
Phabricator
Search
Log In
Paste
P397
Masterwork From Distant Lands
Active
Public
Actions
Authored by
dkazakov
on Jun 3 2019, 8:15 AM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Subscribers
None
diff --git a/libs/ui/opengl/KisOpenGLModeProber.cpp b/libs/ui/opengl/KisOpenGLModeProber.cpp
index 43de57b..064c119 100644
--- a/libs/ui/opengl/KisOpenGLModeProber.cpp
+++ b/libs/ui/opengl/KisOpenGLModeProber.cpp
@@ -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
dkazakov
edited the content of this paste.
(Show Details)
Jun 3 2019, 8:15 AM
dkazakov
changed the title of this paste from untitled to
Masterwork From Distant Lands
.
Log In to Comment