[PATCH 1/5] wined3d: Make sure queries have an active GL context.

Stefan Dösinger stefan at codeweavers.com
Fri Jun 26 04:00:10 CDT 2009


Am Friday 26 June 2009 10:07:08 schrieb Henri Verbeet:
> +    ActivateContext(This->wineD3DDevice,
> This->wineD3DDevice->lastActiveRenderTarget, CTXUSAGE_RESOURCELOAD); +
>      if (((WineQueryOcclusionData *)This->extendedData)->ctx !=
> This->wineD3DDevice->activeContext ||
> This->wineD3DDevice->activeContext->tid != GetCurrentThreadId())


Wouldn't it be better to activate a context after the thread check? Ie, don't 
activate a context when we know that we can't make use of the GL query 
anyway?




More information about the wine-devel mailing list