mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 13:58:04 +02:00
In intelCopyBuffer() use current context, not dPriv->driContextPriv->driverPrivate.
The later can lead to nested locking attempt with threaded apps.
This commit is contained in:
parent
b3c94f9d9d
commit
8fb2e61801
1 changed files with 10 additions and 0 deletions
|
|
@ -58,7 +58,17 @@ void intelCopyBuffer( const __DRIdrawablePrivate *dPriv )
|
|||
assert(dPriv->driContextPriv);
|
||||
assert(dPriv->driContextPriv->driverPrivate);
|
||||
|
||||
#if 00
|
||||
/* XXX This context may not be the current one! Leads to nested locking
|
||||
* if threading.
|
||||
*/
|
||||
intel = (struct intel_context *) dPriv->driContextPriv->driverPrivate;
|
||||
#else
|
||||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
intel = (struct intel_context *) ctx;
|
||||
}
|
||||
#endif
|
||||
|
||||
bmFinishFence(intel->bm, intel->last_swap_fence);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue