mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-28 10:20:09 +01:00
xdemos/omlsync: improve OML WaitMsc test
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.
This commit is contained in:
parent
e5923a1240
commit
f2a035e5d8
1 changed files with 6 additions and 4 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue