Fix inexplicably changed condition in GL backingstore composition
In a13e8d6660
which provided the move
and decoupling of OpenGL code the !makeCurrent-succeeded &&
!context-is-valid condition got changed to !makeCurrent-succeeded &&
context-is-valid which makes no sense because what we test for is
context lost situations, in which case makeCurrent fails and isValid()
reports false.
Restore the ! that went missing in the above mentioned patch.
Pick-to: 6.2 6.1
Change-Id: I94f84d2853bcbd2965f76ecd665d3614b1f0e746
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
This commit is contained in:
parent
0965cf0f1e
commit
c6c6e01e89
@ -174,7 +174,8 @@ void QPlatformBackingStoreOpenGLSupport::composeAndFlush(QWindow *window, const
|
||||
|
||||
bool current = context->makeCurrent(window);
|
||||
|
||||
if (!current && context->isValid()) {
|
||||
if (!current && !context->isValid()) {
|
||||
// release resources and attempt to reinitialize upon context loss
|
||||
delete blitter;
|
||||
blitter = nullptr;
|
||||
textureId = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user