flush buffers in EndScene (#126)

This commit is contained in:
Dethrace Engineering Department 2022-05-02 08:48:35 +12:00 committed by GitHub
parent 4491add68f
commit ffc117264f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -346,6 +346,7 @@ void Harness_Hook_renderFaces(br_actor* actor, br_model* model, br_material* mat
}
void Harness_Hook_BrZbSceneRenderEnd() {
renderer->FlushBuffers(last_colour_buffer, last_depth_buffer);
renderer->EndScene();
}
@ -353,7 +354,6 @@ void Harness_Hook_BrZbSceneRenderEnd() {
void Harness_Hook_BrPixelmapDoubleBuffer(br_pixelmap* dst, br_pixelmap* src) {
// draw the current colour_buffer (2d screen) contents
renderer->FlushBuffers(last_colour_buffer, last_depth_buffer);
Harness_RenderScreen(dst, src);
int delay_ms = Harness_CalculateFrameDelay();