Bug 1157661 - Fix a null-check in CompositorOGL::DrawQuad. r=nical

This commit is contained in:
Thibaud Backenstrass 2015-05-05 18:31:41 +02:00
parent f6eb7cf6e4
commit 781112874e

View File

@ -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;
}