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
Родитель b5dfabcf7a
Коммит cf369566e9
1 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

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