GLX/OML: honor OML semantics even if target, divisor and remainder are 0
authorJesse Barnes <jbarnes@virtuousgeek.org>
Mon, 22 Mar 2010 23:39:11 +0000 (16:39 -0700)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Mon, 22 Mar 2010 23:41:17 +0000 (16:41 -0700)
commit8f4f2a0c3625de2bb2b8e955afc23b3ce8c95f93
tree17ed1805d6bbf1772bd0dd67a9348750be8a360c
parentd9ea1af82c233a10adbf9b842546e9322480591b
GLX/OML: honor OML semantics even if target, divisor and remainder are 0

This change passes a remainder of 1 to the server with the
DRI2SwapBuffers request, causing it to honor the OML semantics for the
swap rather than falling through to glXSwapBuffers behavior.  The
remainder actually ends up ignored since the divisor is 0, but we need
to differentiate the OML and standard behavior somehow.

Reported-by: Mario Kleiner <mario.kleiner@tuebingen.mpg.de>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
src/glx/glxcmds.c