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:
parent
4e431c99db
commit
158799e79c
@ -645,7 +645,7 @@ namespace bgfx { namespace d3d11
|
||||
}
|
||||
|
||||
IDXGIDevice* device = NULL;
|
||||
IDXGIAdapter* adapter;
|
||||
IDXGIAdapter* adapter = NULL;
|
||||
hr = E_FAIL;
|
||||
for (uint32_t ii = 0; ii < BX_COUNTOF(s_deviceIIDs) && FAILED(hr); ++ii)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user