summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/Null/VertexManager.cpp
diff options
context:
space:
mode:
authorStenzek <stenzek@gmail.com>2018-10-14 21:24:06 +1000
committerStenzek <stenzek@gmail.com>2018-10-14 21:24:09 +1000
commite3f475b30e085c32f9dc56bf59c270dcbe80ee5e (patch)
tree595969d10d37dcb56f9aa0d2a1598e4052de72b3 /Source/Core/VideoBackends/Null/VertexManager.cpp
parentc2fab7f01667c4ae1c9d039a5ace87ad21c4d98d (diff)
NullBackend: Initialize vtx_decl in VertexFormat
This field was previously left uninitialized, which resulted in corrupted UID caches being created.
Diffstat (limited to 'Source/Core/VideoBackends/Null/VertexManager.cpp')
-rw-r--r--Source/Core/VideoBackends/Null/VertexManager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/VideoBackends/Null/VertexManager.cpp b/Source/Core/VideoBackends/Null/VertexManager.cpp
index 17cab39b05..0e121ffa0d 100644
--- a/Source/Core/VideoBackends/Null/VertexManager.cpp
+++ b/Source/Core/VideoBackends/Null/VertexManager.cpp
@@ -13,13 +13,13 @@ namespace Null
class NullNativeVertexFormat : public NativeVertexFormat
{
public:
- NullNativeVertexFormat() {}
+ NullNativeVertexFormat(const PortableVertexDeclaration& vtx_decl_) { vtx_decl = vtx_decl_; }
};
std::unique_ptr<NativeVertexFormat>
VertexManager::CreateNativeVertexFormat(const PortableVertexDeclaration& vtx_decl)
{
- return std::make_unique<NullNativeVertexFormat>();
+ return std::make_unique<NullNativeVertexFormat>(vtx_decl);
}
VertexManager::VertexManager() : m_local_v_buffer(MAXVBUFFERSIZE), m_local_i_buffer(MAXIBUFFERSIZE)