Throw in assorted warning fixes

This commit is contained in:
Henrik Rydgård 2022-09-20 17:54:46 +02:00
parent f6cb6c7695
commit 85d1f28997
5 changed files with 7 additions and 2 deletions

View File

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

View File

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

View File

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

View File

@ -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;
}

View File

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