- fix non-crt allocated buffer size too

This commit is contained in:
Ilya Shurumov 2020-11-10 03:08:17 +06:00
parent aadd35be97
commit 10dd4e72bf
2 changed files with 2 additions and 8 deletions

View File

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

View File

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