From 26f936406235c3b215512f4eabf31465f5fe8e9b Mon Sep 17 00:00:00 2001 From: Hamish Milne Date: Sat, 28 Mar 2020 16:28:07 +0000 Subject: [PATCH] Apply suggestions from code review Co-Authored-By: Ben --- src/common/memory_ref.h | 4 ++-- src/video_core/shader/shader.h | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/common/memory_ref.h b/src/common/memory_ref.h index c11beb04d6..f1a3286aba 100644 --- a/src/common/memory_ref.h +++ b/src/common/memory_ref.h @@ -31,11 +31,11 @@ public: BufferMem() = default; BufferMem(u32 size) : data(std::vector(size)) {} - virtual u8* GetPtr() { + u8* GetPtr() override { return data.data(); } - virtual u32 GetSize() const { + u32 GetSize() const override { return static_cast(data.size()); } diff --git a/src/video_core/shader/shader.h b/src/video_core/shader/shader.h index 6a5a334193..05a1e8b80a 100644 --- a/src/video_core/shader/shader.h +++ b/src/video_core/shader/shader.h @@ -70,6 +70,7 @@ private: void serialize(Archive& ar, const unsigned int) { ar& pos; ar& quat; + ar& color; ar& tc0; ar& tc1; ar& tc0_w;