Skip to content

Commit

Permalink
Fix uninitialized variable warning
Browse files Browse the repository at this point in the history
  • Loading branch information
doitsujin committed Mar 31, 2022
1 parent 31b521e commit 346b2fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ ID3D11Resource* createShadowResourceLocked(
ATFIX_RESOURCE_INFO resourceInfo = { };
getResourceInfo(pBaseResource, &resourceInfo);

ID3D11Resource* shadowResource;
ID3D11Resource* shadowResource = nullptr;
HRESULT hr;

switch (resourceInfo.Dim) {
Expand Down

0 comments on commit 346b2fb

Please sign in to comment.