From 749037346c88c291b4ed199fcf5febe272fa3091 Mon Sep 17 00:00:00 2001 From: Gregory Hainaut Date: Wed, 28 Sep 2016 09:52:26 +0200 Subject: [PATCH] gsdx: report an error if PSM is invalid --- plugins/GSdx/GSState.cpp | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/plugins/GSdx/GSState.cpp b/plugins/GSdx/GSState.cpp index 079f00237e..1a75942a24 100644 --- a/plugins/GSdx/GSState.cpp +++ b/plugins/GSdx/GSState.cpp @@ -826,10 +826,25 @@ template void GSState::ApplyTEX0(GIFRegTEX0& TEX0) // Handle invalid PSM here switch (TEX0.PSM) { + case PSM_PSMCT32: + case PSM_PSMCT24: + case PSM_PSMCT16: + case PSM_PSMCT16S: + case PSM_PSMT8: + case PSM_PSMT4: + case PSM_PSMT8H: + case PSM_PSMT4HL: + case PSM_PSMT4HH: + case PSM_PSMZ32: + case PSM_PSMZ24: + case PSM_PSMZ16: + case PSM_PSMZ16S: + break; case 3: - TEX0.PSM = 0x13; // International Star Soccer (menu) + TEX0.PSM = PSM_PSMT8; // International Star Soccer (menu) break; default: + fprintf(stderr, "INVALID PSM !!!\n"); break; }