summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/D3D/D3DNativeVertexFormat.cpp
diff options
context:
space:
mode:
authorPokechu22 <Pokechu022@gmail.com>2021-11-10 15:55:33 -0800
committerPokechu22 <Pokechu022@gmail.com>2022-01-09 12:44:13 -0800
commit82acfa6a46120ea28d139fa5fe9db336d766c651 (patch)
treeeca76a50a16150c3b10564c129e6f7f0dc73a355 /Source/Core/VideoBackends/D3D/D3DNativeVertexFormat.cpp
parent161c6274668af9b2bc9d7c46415c317d8768c834 (diff)
VideoBackends/D3D: Eliminate CHECK in favor of ASSERT_MSG
Diffstat (limited to 'Source/Core/VideoBackends/D3D/D3DNativeVertexFormat.cpp')
-rw-r--r--Source/Core/VideoBackends/D3D/D3DNativeVertexFormat.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Core/VideoBackends/D3D/D3DNativeVertexFormat.cpp b/Source/Core/VideoBackends/D3D/D3DNativeVertexFormat.cpp
index 8f7d9cad12..76eeef6ec3 100644
--- a/Source/Core/VideoBackends/D3D/D3DNativeVertexFormat.cpp
+++ b/Source/Core/VideoBackends/D3D/D3DNativeVertexFormat.cpp
@@ -3,6 +3,7 @@
#include <array>
+#include "Common/Assert.h"
#include "Common/EnumMap.h"
#include "VideoBackends/D3D/D3DBase.h"
@@ -182,7 +183,7 @@ ID3D11InputLayout* D3DVertexFormat::GetInputLayout(const void* vs_bytecode, size
HRESULT hr = D3D::device->CreateInputLayout(m_elems.data(), m_num_elems, vs_bytecode,
vs_bytecode_size, &layout);
- CHECK(SUCCEEDED(hr), "Failed to create input layout");
+ ASSERT_MSG(VIDEO, SUCCEEDED(hr), "Failed to create input layout");
// This method can be called from multiple threads, so ensure that only one thread sets the
// cached input layout pointer. If another thread beats this thread, use the existing layout.