projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e5923a1
)
xdemos/omlsync: improve OML WaitMsc test
author
Jesse Barnes
<jbarnes@virtuousgeek.org>
Mon, 8 Mar 2010 19:30:26 +0000
(11:30 -0800)
committer
Jesse Barnes
<jbarnes@virtuousgeek.org>
Mon, 8 Mar 2010 19:31:26 +0000
(11:31 -0800)
Use the divisor/remainder for the WaitForMscOML call if a wait_interval
is passed. Allows for testing of the WaitMSC paths in the server & DDX.
progs/xdemos/omlsync.c
patch
|
blob
|
history
diff --git
a/progs/xdemos/omlsync.c
b/progs/xdemos/omlsync.c
index a2baf4ad7203ba5a57ba696d8fad20a0cb3175c0..061d6c68613ba930f8ec00684d2d5c31d5d57883 100644
(file)
--- a/
progs/xdemos/omlsync.c
+++ b/
progs/xdemos/omlsync.c
@@
-249,11
+249,13
@@
int main(int argc, char *argv[])
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
glRectf(0, 0, width, height);
- glXSwapBuffersMscOML(disp, winGL, 0, divisor, remainder);
-
- if (wait_interval) {
+ if (!wait_interval)
+ glXSwapBuffersMscOML(disp, winGL, 0, divisor,
+ remainder);
+ else {
glXWaitForMscOML(disp, winGL, msc + wait_interval,
- 0, 0, &ust, &msc, &sbc);
+ divisor, remainder, &ust, &msc, &sbc);
+ glXSwapBuffersMscOML(disp, winGL, 0, 0, 0);
}
}