From 18c59c11661b22171f96613845e548ca6423a01f Mon Sep 17 00:00:00 2001 From: Flyinghead Date: Sat, 30 Jun 2018 13:51:03 +0200 Subject: [PATCH] Fix read_frame/dump_frame for now missing autosort param --- core/hw/pvr/Renderer_if.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/hw/pvr/Renderer_if.cpp b/core/hw/pvr/Renderer_if.cpp index 6e8376a08..87936ad0a 100644 --- a/core/hw/pvr/Renderer_if.cpp +++ b/core/hw/pvr/Renderer_if.cpp @@ -99,7 +99,7 @@ void dump_frame(const char* file, TA_context* ctx, u8* vram, u8* vram_ref = NULL fwrite(&ctx->rend.isRTT, 1, sizeof(ctx->rend.isRTT), fw); u32 zero = 0; - fwrite(&zero, 1, sizeof(zero), fw); // Was autosort + fwrite(&zero, 1, sizeof(bool), fw); // Was autosort fwrite(&ctx->rend.fb_X_CLIP.full, 1, sizeof(ctx->rend.fb_X_CLIP.full), fw); fwrite(&ctx->rend.fb_Y_CLIP.full, 1, sizeof(ctx->rend.fb_Y_CLIP.full), fw); @@ -172,7 +172,7 @@ TA_context* read_frame(const char* file, u8* vram_ref = NULL) { ctx->tad.Clear(); fread(&ctx->rend.isRTT, 1, sizeof(ctx->rend.isRTT), fw); - fread(&t, 1, sizeof(t), fw); // Was autosort + fread(&t, 1, sizeof(bool), fw); // Was autosort fread(&ctx->rend.fb_X_CLIP.full, 1, sizeof(ctx->rend.fb_X_CLIP.full), fw); fread(&ctx->rend.fb_Y_CLIP.full, 1, sizeof(ctx->rend.fb_Y_CLIP.full), fw);