GLX/DRI2: pass drawable correctly for indirect swap events

Pass the right drawable pointer as data to the swap complete function.

Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
This commit is contained in:
Jesse Barnes 2011-05-03 10:36:44 -07:00
parent 9d568450b1
commit a3cb7d097a

View File

@ -222,7 +222,7 @@ __glXDRIdrawableSwapBuffers(ClientPtr client, __GLXdrawable *drawable)
#endif
if (DRI2SwapBuffers(client, drawable->pDraw, 0, 0, 0, &unused,
__glXdriSwapEvent, drawable->pDraw) != Success)
__glXdriSwapEvent, drawable) != Success)
return FALSE;
return TRUE;