mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1157661 - Fix a null-check in CompositorOGL::DrawQuad. r=nical
This commit is contained in:
parent
f6eb7cf6e4
commit
781112874e
@ -1087,7 +1087,7 @@ CompositorOGL::DrawQuad(const Rect& aRect,
|
||||
TextureSourceOGL* sourceCb = sourceYCbCr->GetSubSource(Cb)->AsSourceOGL();
|
||||
TextureSourceOGL* sourceCr = sourceYCbCr->GetSubSource(Cr)->AsSourceOGL();
|
||||
|
||||
if (!sourceY && !sourceCb && !sourceCr) {
|
||||
if (!sourceY || !sourceCb || !sourceCr) {
|
||||
NS_WARNING("Invalid layer texture.");
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user