Fixes error C4701 in renderer_d3d11.cpp on VC12 build

renderer_d3d11.cpp(687, 0): error C4701: potentially uninitialized local variable 'adapter' used
This commit is contained in:
Andrew Johnson 2015-04-23 08:14:29 -07:00
parent 4e431c99db
commit 158799e79c

View File

@ -645,7 +645,7 @@ namespace bgfx { namespace d3d11
} }
IDXGIDevice* device = NULL; IDXGIDevice* device = NULL;
IDXGIAdapter* adapter; IDXGIAdapter* adapter = NULL;
hr = E_FAIL; hr = E_FAIL;
for (uint32_t ii = 0; ii < BX_COUNTOF(s_deviceIIDs) && FAILED(hr); ++ii) for (uint32_t ii = 0; ii < BX_COUNTOF(s_deviceIIDs) && FAILED(hr); ++ii)
{ {