Bug 1160157: Part 1. Uninitialized statics aren't really uninitialized, but it doesn't read well. r=jmuizelaar

This commit is contained in:
Milan Sreckovic 2015-05-01 13:26:38 -04:00
parent 16e29d4759
commit 881fe344f4

View File

@ -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;