зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1160157: Part 1. Uninitialized statics aren't really uninitialized, but it doesn't read well. r=jmuizelaar
This commit is contained in:
Родитель
b5dfabcf7a
Коммит
cf369566e9
|
@ -1725,8 +1725,8 @@ gfxWindowsPlatform::GetDXGIAdapter()
|
|||
|
||||
bool DoesD3D11DeviceWork(ID3D11Device *device)
|
||||
{
|
||||
static bool checked;
|
||||
static bool result;
|
||||
static bool checked = false;
|
||||
static bool result = false;
|
||||
|
||||
if (checked)
|
||||
return result;
|
||||
|
@ -1764,8 +1764,8 @@ bool DoesD3D11DeviceWork(ID3D11Device *device)
|
|||
// with E_OUTOFMEMORY.
|
||||
bool DoesD3D11TextureSharingWork(ID3D11Device *device)
|
||||
{
|
||||
static bool checked;
|
||||
static bool result;
|
||||
static bool checked = false;
|
||||
static bool result = false;
|
||||
|
||||
if (checked)
|
||||
return result;
|
||||
|
|
Загрузка…
Ссылка в новой задаче