mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 23:31:56 +00:00
Bug 644199: Properly re-upload after clearing mTexture because of device reset. r=roc
This commit is contained in:
parent
9db27bafcd
commit
acf0ebbabb
@ -90,14 +90,17 @@ CanvasLayerD3D9::Initialize(const Data& aData)
|
||||
void
|
||||
CanvasLayerD3D9::UpdateSurface()
|
||||
{
|
||||
if (!mDirty)
|
||||
if (!mDirty && mTexture)
|
||||
return;
|
||||
mDirty = false;
|
||||
|
||||
if (!mTexture) {
|
||||
CreateTexture();
|
||||
NS_WARNING("CanvasLayerD3D9::Updated called but no texture present!");
|
||||
return;
|
||||
|
||||
if (!mTexture) {
|
||||
NS_WARNING("CanvasLayerD3D9::Updated called but no texture present and creation failed!");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (mGLContext) {
|
||||
|
Loading…
Reference in New Issue
Block a user