зеркало из https://github.com/mozilla/gecko-dev.git
Bug 644199: Properly re-upload after clearing mTexture because of device reset. r=roc
This commit is contained in:
Родитель
9db27bafcd
Коммит
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) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче