NullBackend: Initialize vtx_decl in VertexFormat

This field was previously left uninitialized, which resulted in corrupted
UID caches being created.
This commit is contained in:
Stenzek 2018-10-14 21:24:06 +10:00
parent c2fab7f016
commit e3f475b30e
1 changed files with 2 additions and 2 deletions

View File

@ -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)