зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1276062 - show a log if there is no device for DrawTargetD2D1::Init(). r=bas
This commit is contained in:
Родитель
d38fc6b22a
Коммит
5f9e6f5771
|
@ -944,6 +944,7 @@ DrawTargetD2D1::Init(ID3D11Texture2D* aTexture, SurfaceFormat aFormat)
|
|||
|
||||
ID2D1Device* device = Factory::GetD2D1Device();
|
||||
if (!device) {
|
||||
gfxCriticalNote << "[D2D1.1] Failed to obtain a device for DrawTargetD2D1::Init().";
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -1008,6 +1009,7 @@ DrawTargetD2D1::Init(const IntSize &aSize, SurfaceFormat aFormat)
|
|||
|
||||
ID2D1Device* device = Factory::GetD2D1Device();
|
||||
if (!device) {
|
||||
gfxCriticalNote << "[D2D1.1] Failed to obtain a device for DrawTargetD2D1::Init().";
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче