dri_util: Assume error checking is done properly in glXMakeCurrent
authorJakob Bornecrantz <jakob@vmware.com>
Mon, 26 Apr 2010 14:32:08 +0000 (15:32 +0100)
committerJakob Bornecrantz <jakob@vmware.com>
Tue, 27 Apr 2010 11:17:11 +0000 (12:17 +0100)
commit64fa717b18272bda2551a6dc2e1a40725b031097
tree001f377e8261fb3224a37ed3bbdf19c4efe79e08
parentae79e778f7fae99812ade79ecf5cf3c783d2a93b
dri_util: Assume error checking is done properly in glXMakeCurrent

In short what the code did before:

    __DRIscreen *psp = NULL;
    if (pcp)
       psp = pcp->psb;

    assert(psp);
    if (psp->stuff)
       other_stuff();

    return psb->even_more(pcp);

Remove all that stupid checking which still segfaults/asserts later on and
just do what we do in driUnbindContext. Also limited testing show libGL never
call driUnbindContext or driBindContext with cPriv == NULL.
src/mesa/drivers/dri/common/dri_util.c