Updated lib_ui sources to TDesktop version 3.1.1+0984e63

This commit is contained in:
Eric Kotato 2021-09-26 01:18:14 +03:00
commit 300dd975a5

View file

@ -91,6 +91,9 @@ void SurfaceOpenGL::paintEvent(QPaintEvent *e) {
return;
}
engine->begin(device);
if (!isValid()) { // The call above could lose the context.
return;
}
const auto f = context()->functions();
if (const auto bg = _renderer->clearColor()) {
f->glClearColor(bg->redF(), bg->greenF(), bg->blueF(), bg->alphaF());