Home
Phabricator
Search
Log In
Paste
P190
Masterwork From Distant Lands
Active
Public
Actions
Authored by
davidedmundson
on Apr 4 2018, 10:08 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Subscribers
None
diff --git a/plugins/kdecorations/aurorae/src/aurorae.cpp b/plugins/kdecorations/aurorae/src/aurorae.cpp
index 4c5879be2..d849c0fff 100644
--- a/plugins/kdecorations/aurorae/src/aurorae.cpp
+++ b/plugins/kdecorations/aurorae/src/aurorae.cpp
@@ -358,6 +358,14 @@ void Decoration::init()
[this, usingGL] {
if (usingGL) {
if (!m_context->makeCurrent(m_offscreenSurface.data())) {
+ if (!m_context->isValid()) {
+ m_renderControl->invalidate();
+ m_context->create();
+ m_context->makeCurrent(m_offscreenSurface.data());
+ m_renderControl->initialize(m_context.data());
+ m_context->doneCurrent();
+ m_view->update();
+ }
return;
}
if (m_fbo.isNull() || m_fbo->size() != m_view->size()) {
davidedmundson
edited the content of this paste.
(Show Details)
Apr 4 2018, 10:08 PM
davidedmundson
changed the title of this paste from untitled to
Masterwork From Distant Lands
.
davidedmundson
updated the paste's language from
autodetect
to
autodetect
.
Log In to Comment