From bf0fa09160d1ac372e0aa03efeb0c81fd6a981a5 Mon Sep 17 00:00:00 2001 From: superp00t Date: Sun, 26 Nov 2023 15:11:22 -0500 Subject: [PATCH] fix(gx): do glFlush() before swapping buffers --- src/gx/glsdl/GLSDLDevice.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gx/glsdl/GLSDLDevice.cpp b/src/gx/glsdl/GLSDLDevice.cpp index dd49d79..c317135 100644 --- a/src/gx/glsdl/GLSDLDevice.cpp +++ b/src/gx/glsdl/GLSDLDevice.cpp @@ -1604,6 +1604,8 @@ void GLSDLDevice::DrawRect() { this->m_States.binding.framebuffer = 0; } + glFlush(); + this->m_Window->Swap(); if (!this->m_UseWindowSystemBuffer || this->m_FlippedSystemBuffer) {