OpenGL error messages are now reported properly

This commit is contained in:
Cacodemon345
2025-03-10 13:27:29 +06:00
parent 1626ee8760
commit dceb13f859
5 changed files with 33 additions and 9 deletions

View File

@@ -385,6 +385,7 @@ plat_munmap(void *ptr, size_t size)
#endif
}
extern bool cpu_thread_running;
void
plat_pause(int p)
{
@@ -392,6 +393,10 @@ plat_pause(int p)
wchar_t title[1024];
wchar_t paused_msg[512];
if (!cpu_thread_running && p == 1) {
p = 2;
}
if ((!!p) == dopause) {
#ifdef Q_OS_WINDOWS
if (source_hwnd)