aboutsummaryrefslogtreecommitdiff
path: root/libpsn00b/psxgpu
diff options
context:
space:
mode:
authorspicyjpeg <thatspicyjpeg@gmail.com>2022-08-21 23:36:45 +0200
committerspicyjpeg <thatspicyjpeg@gmail.com>2022-08-21 23:36:45 +0200
commitf2e946cc0f9730c0da56aae533b3429a0381003e (patch)
tree7ae3607a4708d8cdae096fa07dea774cead6ae4d /libpsn00b/psxgpu
parentc845878cb43da4f7470914a064109db2270fd7e6 (diff)
downloadpsn00bsdk-f2e946cc0f9730c0da56aae533b3429a0381003e.tar.gz
Fix psxetc bugs, IRQ controller register size
Diffstat (limited to 'libpsn00b/psxgpu')
-rw-r--r--libpsn00b/psxgpu/common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpsn00b/psxgpu/common.c b/libpsn00b/psxgpu/common.c
index de60df4..cef1508 100644
--- a/libpsn00b/psxgpu/common.c
+++ b/libpsn00b/psxgpu/common.c
@@ -215,7 +215,7 @@ void DrawOTag(const uint32_t *ot) {
// condition where the DMA transfer could end while interrupts are being
// disabled. Interrupts are disabled through the IRQ_MASK register rather
// than by calling EnterCriticalSection() for performance reasons.
- uint32_t mask = IRQ_MASK;
+ uint16_t mask = IRQ_MASK;
IRQ_MASK = 0;
if (DMA_CHCR(2) & (1 << 24)) {