diff --git a/impl.cpp b/impl.cpp index aca15e9..5e4b79b 100644 --- a/impl.cpp +++ b/impl.cpp @@ -240,7 +240,7 @@ ID3D11Resource* createShadowResourceLocked( ATFIX_RESOURCE_INFO resourceInfo = { }; getResourceInfo(pBaseResource, &resourceInfo); - ID3D11Resource* shadowResource; + ID3D11Resource* shadowResource = nullptr; HRESULT hr; switch (resourceInfo.Dim) {