diff --git a/src/renderer_d3d11.cpp b/src/renderer_d3d11.cpp index 3dd6f6707..1b218db03 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) {