wasm: prevent crash on null backingstore pointer
We can get draw calls in between creating the platform window and the platform backing store. Task-number: QTBUG-75463 Change-Id: If0b67d40fac84e466f204ec23a267aa4c6121cbd Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
parent
22c3c55de4
commit
6d7c7a5dda
|
|
@ -251,6 +251,8 @@ void QWasmCompositor::blit(QOpenGLTextureBlitter *blitter, QWasmScreen *screen,
|
|||
void QWasmCompositor::drawWindowContent(QOpenGLTextureBlitter *blitter, QWasmScreen *screen, QWasmWindow *window)
|
||||
{
|
||||
QWasmBackingStore *backingStore = window->backingStore();
|
||||
if (!backingStore)
|
||||
return;
|
||||
|
||||
QOpenGLTexture const *texture = backingStore->getUpdatedTexture();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue