fix bugs.

This commit is contained in:
hecomi
2016-11-15 22:29:36 +09:00
parent 5c21b65afe
commit 7b3990107d
2 changed files with 1 additions and 1 deletions
@@ -159,7 +159,7 @@ void Monitor::Render(UINT timeout)
if (unityTexture_)
{
ID3D11Texture2D* texture;
if (FAILED(resource->QueryInterface<ID3D11Texture2D>(&texture)))
if (FAILED(resource.CopyTo(&texture)))
{
Debug::Error("Monitor::Render() => resource.As() failed.");
return;