xlib st: Fix makeCurrent.
authorThomas Hellstrom <thellstrom-at-vmware-dot-com>
Wed, 18 Mar 2009 10:52:24 +0000 (11:52 +0100)
committerThomas Hellstrom <thellstrom-at-vmware-dot-com>
Wed, 18 Mar 2009 10:58:40 +0000 (11:58 +0100)
commitd405ba3151de9585a310b7e2ebcae09302c0dbe4
tree5aa2ce6fe3196ec3779cd95699a5ea8a220a50c2
parentae36fadb7f137cd7f53dccb58d1a73fc46ccc26b
xlib st: Fix makeCurrent.

Flush if we change context.
Also reinstate the old optimization of doing nothing if
nothing changes.

Signed-off-by: Thomas Hellstrom <thellstrom-at-vmware-dot-com>
src/gallium/state_trackers/glx/xlib/xm_api.c
src/gallium/state_trackers/glx/xlib/xm_api.h