diff options
| author | Lioncash <mathew1800@gmail.com> | 2017-09-02 14:22:18 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2017-09-02 14:45:14 -0400 |
| commit | 64de8a9d0b8ac29fc82c414b82408a524ba1c711 (patch) | |
| tree | db84de4c04f0edb56ce02d2c522afa795e6f702e /Source/Core/VideoBackends/D3D/TextureCache.cpp | |
| parent | 1191280e76ab596eed78641d9169d270a3332ab4 (diff) | |
D3D: Eliminate redundant ID3D11DeviceChild* casts
Diffstat (limited to 'Source/Core/VideoBackends/D3D/TextureCache.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/D3D/TextureCache.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/VideoBackends/D3D/TextureCache.cpp b/Source/Core/VideoBackends/D3D/TextureCache.cpp index 87b3a50260..36ed5f96bb 100644 --- a/Source/Core/VideoBackends/D3D/TextureCache.cpp +++ b/Source/Core/VideoBackends/D3D/TextureCache.cpp @@ -208,7 +208,7 @@ TextureCache::TextureCache() CD3D11_BUFFER_DESC(16, D3D11_BIND_CONSTANT_BUFFER, D3D11_USAGE_DEFAULT); hr = D3D::device->CreateBuffer(&cbdesc, nullptr, &palette_uniform); CHECK(SUCCEEDED(hr), "Create palette decoder constant buffer"); - D3D::SetDebugObjectName((ID3D11DeviceChild*)palette_uniform, + D3D::SetDebugObjectName(palette_uniform, "a constant buffer used in TextureCache::CopyRenderTargetToTexture"); } @@ -264,7 +264,7 @@ void TextureCache::CopyEFBToCacheEntry(TCacheEntry* entry, bool is_depth_copy, data.pSysMem = colmat; HRESULT hr = D3D::device->CreateBuffer(&cbdesc, &data, &s_efbcopycbuf[cbuf_id]); CHECK(SUCCEEDED(hr), "Create efb copy constant buffer %d", cbuf_id); - D3D::SetDebugObjectName((ID3D11DeviceChild*)s_efbcopycbuf[cbuf_id], + D3D::SetDebugObjectName(s_efbcopycbuf[cbuf_id], "a constant buffer used in TextureCache::CopyRenderTargetToTexture"); } D3D::stateman->SetPixelConstants(s_efbcopycbuf[cbuf_id]); |
