mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
VideoBackends/D3D: Eliminate CHECK in favor of ASSERT_MSG
This commit is contained in:
@ -3,6 +3,8 @@
|
||||
|
||||
#include "VideoBackends/D3D/D3DSwapChain.h"
|
||||
|
||||
#include "Common/Assert.h"
|
||||
|
||||
#include "VideoBackends/D3D/DXTexture.h"
|
||||
|
||||
namespace DX11
|
||||
@ -29,7 +31,7 @@ bool SwapChain::CreateSwapChainBuffers()
|
||||
{
|
||||
ComPtr<ID3D11Texture2D> texture;
|
||||
HRESULT hr = m_swap_chain->GetBuffer(0, IID_PPV_ARGS(&texture));
|
||||
CHECK(SUCCEEDED(hr), "Get swap chain buffer");
|
||||
ASSERT_MSG(VIDEO, SUCCEEDED(hr), "Failed to get swap chain buffer");
|
||||
if (FAILED(hr))
|
||||
return false;
|
||||
|
||||
|
Reference in New Issue
Block a user