Permalink
Browse files

NullBackend: Initialize vtx_decl in VertexFormat

This field was previously left uninitialized, which resulted in corrupted
UID caches being created.
  • Loading branch information...
stenzek committed Oct 14, 2018
1 parent c2fab7f commit e3f475b30e085c32f9dc56bf59c270dcbe80ee5e
Showing with 2 additions and 2 deletions.
  1. +2 −2 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)

0 comments on commit e3f475b

Please sign in to comment.