[PATCH 14/15] wined3d: Add device->isInDraw checks in LoadLocation.
actong88 at gmail.com
Sun Apr 6 20:21:27 CDT 2008
On Sun, Apr 6, 2008 at 5:06 PM, Alexander Dorofeyev <alexd4 at inbox.lv> wrote:
> Prevents calling ActivateContext while holding gl lock, e.g. when
> preloading texture in sampler().
There may be a problem here with drawPrimitive, which calls
LoadLocation before ActivateContext while having isInDraw=TRUE. If
the primary render target is an offscreen FBO surface, LoadLocation
will follow the SFLAG_INTEXTURE path and it may end up making gl calls
without a context in place.
More information about the wine-devel