From 158799e79c0b30538cd29c7899e6650f19757b1b Mon Sep 17 00:00:00 2001 From: Andrew Johnson Date: Thu, 23 Apr 2015 08:14:29 -0700 Subject: [PATCH] Fixes error C4701 in renderer_d3d11.cpp on VC12 build renderer_d3d11.cpp(687, 0): error C4701: potentially uninitialized local variable 'adapter' used --- src/renderer_d3d11.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer_d3d11.cpp b/src/renderer_d3d11.cpp index 3dd6f670..1b218db0 100644 --- a/src/renderer_d3d11.cpp +++ b/src/renderer_d3d11.cpp @@ -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) {