dri glx: Fix dri_util::driBindContext
authorThomas Hellstrom <thellstrom-at-vmware-dot-com>
Thu, 2 Apr 2009 08:36:40 +0000 (10:36 +0200)
committerThomas Hellstrom <thellstrom-at-vmware-dot-com>
Thu, 2 Apr 2009 09:33:19 +0000 (11:33 +0200)
commit8e753d04045a82062ac34d3b2622eb9dba8af374
treedd70d6ee2ff2dcf392882e0e4b040e57102882f1
parentc952b3e907ab31cd5f95157c18ce2f81626aafe4
dri glx: Fix dri_util::driBindContext

1) Don't error-check here. It's done in glx makeCurrent.
2) Allow ctx and the dri drawables to be NULL for future use. This is
   currently blocked in glx makeCurrent.
3) Avoid updating dri drawables unless they are completely uninitialized.
   Since the updating was done outside of the lock, the driver need to
   verify and redo it anyway.

Signed-off-by: Thomas Hellstrom <thellstrom-at-vmware-dot-com>
src/mesa/drivers/dri/common/dri_util.c