nv50: fix crash in nv50_pre_pipebuffer_map (nv50_screen->cur_ctx)
authorMarcin Slusarz <marcin.slusarz@gmail.com>
Wed, 20 Jan 2010 22:27:07 +0000 (23:27 +0100)
committerBen Skeggs <bskeggs@redhat.com>
Sun, 24 Jan 2010 23:44:34 +0000 (09:44 +1000)
commit0ef781c1ae04451ac4f184187e900f872cad5f94
treeccbb806716e2fdaf5d986f7a8be61ff33061be40
parent74989972ba4fd629905799ed2181f8f6f4e53c2b
nv50: fix crash in nv50_pre_pipebuffer_map (nv50_screen->cur_ctx)

nv50_pre_pipebuffer_map references screen->cur_ctx which points
to freed memory after the context is destroyed.
This crash is easily triggerable by progs/xdemos/glxcontexts.
src/gallium/drivers/nv50/nv50_context.c