Fix OpenGLSafePoint guard
qScopeGuard runs the method when the function goes out of scope. Without a local variable this is immediately.
This commit is contained in:
parent
6432f29e9f
commit
b3abe7526b
1 changed files with 1 additions and 1 deletions
|
@ -167,7 +167,7 @@ bool Compositor::attemptOpenGLCompositing()
|
|||
}
|
||||
|
||||
kwinApp()->platform()->createOpenGLSafePoint(Platform::OpenGLSafePoint::PreInit);
|
||||
qScopeGuard([]() {
|
||||
auto safePointScope = qScopeGuard([]() {
|
||||
kwinApp()->platform()->createOpenGLSafePoint(Platform::OpenGLSafePoint::PostInit);
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue