D3DBase: Fix missing return statement

This commit is contained in:
Lioncash 2016-02-15 21:15:43 -05:00
parent 05f5668bcc
commit a22f2e1144

View File

@ -129,6 +129,7 @@ static void SetDebugObjectName12(ID3D12Resource* resource, LPCSTR name)
static std::string GetDebugObjectName12(ID3D12Resource* resource)
{
std::string name;
if (resource)
{
UINT size = 0;
@ -136,6 +137,8 @@ static std::string GetDebugObjectName12(ID3D12Resource* resource)
name.resize(size);
resource->GetPrivateData(WKPDID_D3DDebugObjectName, &size, const_cast<char*>(name.data()));
}
return name;
}
} // namespace D3D