GPUDevice: Add ExecuteAndWaitForGPUIdle()

This commit is contained in:
Stenzek
2024-07-04 21:54:19 +10:00
parent 9fcc98a60a
commit 3749b812a3
11 changed files with 46 additions and 0 deletions

View File

@ -582,6 +582,12 @@ std::string OpenGLDevice::GetDriverInfo() const
gl_shading_language_version);
}
void OpenGLDevice::ExecuteAndWaitForGPUIdle()
{
// Could be glFinish(), but I'm afraid for mobile drivers...
glFlush();
}
void OpenGLDevice::SetSwapInterval()
{
if (m_window_info.type == WindowInfo::Type::Surfaceless)