mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 15:23:51 +00:00
Bug 594779: Bail out when texture creation fails, to avoid NULL pointer dereference. r=vlad a=blocking-beta7 CLOSED TREE
This commit is contained in:
parent
d2abe7bc5d
commit
818de29c8d
@ -201,6 +201,12 @@ ThebesLayerD3D9::RenderLayer()
|
||||
|
||||
if (!mTexture) {
|
||||
CreateNewTexture(gfxIntSize(visibleRect.width, visibleRect.height));
|
||||
|
||||
if (!mTexture) {
|
||||
NS_WARNING("Failed to create texture for thebes layer - not drawing.");
|
||||
return;
|
||||
}
|
||||
|
||||
mValidRegion.SetEmpty();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user