mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-18 15:05:47 -04:00
Fix resource leaks in AutoStagingTexture::EnsureSize and D3D11HostDisplay::DownloadTexture
This commit is contained in:
@ -84,8 +84,8 @@ bool AutoStagingTexture::EnsureSize(ID3D11DeviceContext* context, u32 width, u32
|
||||
if (m_texture && m_width >= width && m_height >= height && m_format == format)
|
||||
return true;
|
||||
|
||||
ID3D11Device* device;
|
||||
context->GetDevice(&device);
|
||||
ComPtr<ID3D11Device> device;
|
||||
context->GetDevice(device.GetAddressOf());
|
||||
|
||||
CD3D11_TEXTURE2D_DESC new_desc(format, width, height, 1, 1, 0,
|
||||
for_uploading ? D3D11_USAGE_DYNAMIC : D3D11_USAGE_STAGING,
|
||||
|
Reference in New Issue
Block a user