summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/Null/VertexManager.cpp
diff options
context:
space:
mode:
authorTilka <tilkax@gmail.com>2018-10-14 12:30:32 +0100
committerGitHub <noreply@github.com>2018-10-14 12:30:32 +0100
commitb5d855caf7a2bed70edca0385922ffc6dfb5286f (patch)
tree1e79d5a83a258d10669d7a9919e5738bb0998268 /Source/Core/VideoBackends/Null/VertexManager.cpp
parent660fb3fca0f4f0b291ade7b421e231330a69ae7e (diff)
parente3f475b30e085c32f9dc56bf59c270dcbe80ee5e (diff)
Merge pull request #7496 from stenzek/null-shader-cache
ShaderCache: Don't create or load shader cache with Null backend
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)