mirror of
https://github.com/microsoft/DirectXTex.git
synced 2025-07-13 05:30:14 +02:00
Minor code review
This commit is contained in:
parent
2f731dbb0b
commit
b207e278e7
@ -4358,8 +4358,8 @@ namespace
|
|||||||
_Out_ WICPixelFormatGUID& pfGUID,
|
_Out_ WICPixelFormatGUID& pfGUID,
|
||||||
_Out_ WICPixelFormatGUID& targetGUID)
|
_Out_ WICPixelFormatGUID& targetGUID)
|
||||||
{
|
{
|
||||||
memcpy(&pfGUID, &GUID_NULL, sizeof(GUID));
|
memset(&pfGUID, 0, sizeof(GUID));
|
||||||
memcpy(&targetGUID, &GUID_NULL, sizeof(GUID));
|
memset(&targetGUID, 0, sizeof(GUID));
|
||||||
|
|
||||||
if (filter & TEX_FILTER_FORCE_NON_WIC)
|
if (filter & TEX_FILTER_FORCE_NON_WIC)
|
||||||
{
|
{
|
||||||
|
@ -197,7 +197,7 @@ bool DirectX::_DXGIToWIC(DXGI_FORMAT format, GUID& guid, bool ignoreRGBvsBGR)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
memcpy(&guid, &GUID_NULL, sizeof(GUID));
|
memset(&guid, 0, sizeof(GUID));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user