From 10dd4e72bfc1e719a94e67c10d8a71ed0ddbfe56 Mon Sep 17 00:00:00 2001 From: Ilya Shurumov Date: Tue, 10 Nov 2020 03:08:17 +0600 Subject: [PATCH] - fix non-crt allocated buffer size too --- src_rebuild/EMULATOR/EMULATOR.C | 8 +------- src_rebuild/redriver2_psxpc.cpp | 2 +- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/src_rebuild/EMULATOR/EMULATOR.C b/src_rebuild/EMULATOR/EMULATOR.C index 16cfc3ee..d0adefc1 100644 --- a/src_rebuild/EMULATOR/EMULATOR.C +++ b/src_rebuild/EMULATOR/EMULATOR.C @@ -1680,7 +1680,6 @@ void Emulator_DoPollEvent() } bool begin_scene_flag = false; -bool vbo_was_dirty_flag = false; bool Emulator_BeginScene() { @@ -1892,9 +1891,6 @@ void Emulator_EndScene() if (!begin_scene_flag) return; - if (!vbo_was_dirty_flag) - return; - assert(begin_scene_flag); if (g_wireframeMode) @@ -1907,7 +1903,7 @@ void Emulator_EndScene() #endif begin_scene_flag = false; - vbo_was_dirty_flag = false; + Emulator_SwapWindow(); } @@ -2058,8 +2054,6 @@ void Emulator_UpdateVertexBuffer(const Vertex *vertices, int num_vertices) #else #error #endif - - vbo_was_dirty_flag = true; } void Emulator_DrawTriangles(int start_vertex, int triangles) diff --git a/src_rebuild/redriver2_psxpc.cpp b/src_rebuild/redriver2_psxpc.cpp index 4c62a99a..4df381d2 100644 --- a/src_rebuild/redriver2_psxpc.cpp +++ b/src_rebuild/redriver2_psxpc.cpp @@ -355,7 +355,7 @@ void GameDebugKeys(int nKey, bool down) #ifndef USE_CRT_MALLOC char g_Overlay_buffer[0x50000]; // 0x1C0000 -char g_Frontend_buffer[0x50000]; // 0xFB400 +char g_Frontend_buffer[0x60000]; // 0xFB400 char g_Other_buffer[0x50000]; // 0xF3000 char g_Other_buffer2[0x50000]; // 0xE7000 OTTYPE g_OT1[OTSIZE]; // 0xF3000