projects
/
tools
/
apitrace.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ddbf8c0
)
Drain Windows message queue.
author
José Fonseca
<jose.r.fonseca@gmail.com>
Fri, 20 Jan 2012 15:39:15 +0000
(15:39 +0000)
committer
José Fonseca
<jose.r.fonseca@gmail.com>
Fri, 20 Jan 2012 15:39:15 +0000
(15:39 +0000)
To prevent window from being considered non-responsive.
glws_wgl.cpp
patch
|
blob
|
history
diff --git
a/glws_wgl.cpp
b/glws_wgl.cpp
index
ca100d9
..
59f4786
100644
(file)
--- a/
glws_wgl.cpp
+++ b/
glws_wgl.cpp
@@
-162,6
+162,14
@@
public:
void swapBuffers(void) {
SwapBuffers(hDC);
+
+ // Drain message queue to prevent window from being considered
+ // non-responsive
+ MSG msg;
+ while (PeekMessage(&msg, NULL, 0, 0, PM_REMOVE)) {
+ TranslateMessage(&msg);
+ DispatchMessage(&msg);
+ }
}
};