diff --git a/GPU/Common/GPUStateUtils.cpp b/GPU/Common/GPUStateUtils.cpp index 04f8240a61..2b8bb84dc1 100644 --- a/GPU/Common/GPUStateUtils.cpp +++ b/GPU/Common/GPUStateUtils.cpp @@ -231,6 +231,7 @@ StencilValueType ReplaceAlphaWithStencilType() { case GE_FORMAT_8888: case GE_FORMAT_INVALID: case GE_FORMAT_DEPTH16: + case GE_FORMAT_CLUT8: switch (gstate.getStencilOpZPass()) { case GE_STENCILOP_REPLACE: // TODO: Could detect zero here and force ZERO - less uniform updates? diff --git a/GPU/Common/StencilCommon.cpp b/GPU/Common/StencilCommon.cpp index 81749ef678..561c6a2857 100644 --- a/GPU/Common/StencilCommon.cpp +++ b/GPU/Common/StencilCommon.cpp @@ -171,6 +171,7 @@ bool FramebufferManagerCommon::PerformStencilUpload(u32 addr, int size, StencilU break; case GE_FORMAT_INVALID: case GE_FORMAT_DEPTH16: + case GE_FORMAT_CLUT8: // Inconceivable. _assert_(false); break; diff --git a/GPU/Common/TextureCacheCommon.cpp b/GPU/Common/TextureCacheCommon.cpp index 952776c076..127d491010 100644 --- a/GPU/Common/TextureCacheCommon.cpp +++ b/GPU/Common/TextureCacheCommon.cpp @@ -1997,6 +1997,9 @@ static bool CanDepalettize(GETextureFormat texFormat, GEBufferFormat bufferForma return true; } break; + case GE_FORMAT_CLUT8: + // Shouldn't happen here. + return false; } WARN_LOG(G3D, "Invalid CLUT/framebuffer combination: %s vs %s", GeTextureFormatToString(texFormat), GeBufferFormatToString(bufferFormat)); return false; diff --git a/GPU/Software/Rasterizer.cpp b/GPU/Software/Rasterizer.cpp index 4f140b206d..2336ff6bef 100644 --- a/GPU/Software/Rasterizer.cpp +++ b/GPU/Software/Rasterizer.cpp @@ -1235,6 +1235,7 @@ void ClearRectangle(const VertexData &v0, const VertexData &v1, const BinCoords case GE_FORMAT_INVALID: case GE_FORMAT_DEPTH16: + case GE_FORMAT_CLUT8: _dbg_assert_msg_(false, "Software: invalid framebuf format."); break; } diff --git a/UI/DevScreens.h b/UI/DevScreens.h index 92e7cc77f5..0df3d73ce3 100644 --- a/UI/DevScreens.h +++ b/UI/DevScreens.h @@ -100,8 +100,7 @@ public: const char *tag() const override { return "LogLevel"; } private: - virtual void OnCompleted(DialogResult result); - + void OnCompleted(DialogResult result) override; }; class SystemInfoScreen : public UIDialogScreenWithBackground {