wined3d: Flush the GL context before switching away from it.
commit6dd054ca587b1d95c324c10383f1f81155ed9ffb
authorMatteo Bruni <mbruni@codeweavers.com>
Fri, 27 Nov 2015 19:39:31 +0000 (27 20:39 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 30 Nov 2015 14:51:03 +0000 (30 23:51 +0900)
treec7e73ea33128d121f95ffa192d68190dc3394001
parent7223330ffc15b0d824b601bb23d3e2c61258b9da
wined3d: Flush the GL context before switching away from it.

We might end up not using the old context anymore after that and the GL
implementation is allowed to delay executing commands indefinitely if we
don't flush.

Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/wined3d/context.c