mirror of
https://github.com/OpenDriver2/REDRIVER2.git
synced 2024-11-26 04:12:34 +01:00
- fix non-crt allocated buffer size too
This commit is contained in:
parent
aadd35be97
commit
10dd4e72bf
@ -1680,7 +1680,6 @@ void Emulator_DoPollEvent()
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool begin_scene_flag = false;
|
bool begin_scene_flag = false;
|
||||||
bool vbo_was_dirty_flag = false;
|
|
||||||
|
|
||||||
bool Emulator_BeginScene()
|
bool Emulator_BeginScene()
|
||||||
{
|
{
|
||||||
@ -1892,9 +1891,6 @@ void Emulator_EndScene()
|
|||||||
if (!begin_scene_flag)
|
if (!begin_scene_flag)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (!vbo_was_dirty_flag)
|
|
||||||
return;
|
|
||||||
|
|
||||||
assert(begin_scene_flag);
|
assert(begin_scene_flag);
|
||||||
|
|
||||||
if (g_wireframeMode)
|
if (g_wireframeMode)
|
||||||
@ -1907,7 +1903,7 @@ void Emulator_EndScene()
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
begin_scene_flag = false;
|
begin_scene_flag = false;
|
||||||
vbo_was_dirty_flag = false;
|
|
||||||
Emulator_SwapWindow();
|
Emulator_SwapWindow();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2058,8 +2054,6 @@ void Emulator_UpdateVertexBuffer(const Vertex *vertices, int num_vertices)
|
|||||||
#else
|
#else
|
||||||
#error
|
#error
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
vbo_was_dirty_flag = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Emulator_DrawTriangles(int start_vertex, int triangles)
|
void Emulator_DrawTriangles(int start_vertex, int triangles)
|
||||||
|
@ -355,7 +355,7 @@ void GameDebugKeys(int nKey, bool down)
|
|||||||
|
|
||||||
#ifndef USE_CRT_MALLOC
|
#ifndef USE_CRT_MALLOC
|
||||||
char g_Overlay_buffer[0x50000]; // 0x1C0000
|
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_buffer[0x50000]; // 0xF3000
|
||||||
char g_Other_buffer2[0x50000]; // 0xE7000
|
char g_Other_buffer2[0x50000]; // 0xE7000
|
||||||
OTTYPE g_OT1[OTSIZE]; // 0xF3000
|
OTTYPE g_OT1[OTSIZE]; // 0xF3000
|
||||||
|
Loading…
Reference in New Issue
Block a user