On Sun, Apr 6, 2008 at 5:06 PM, Alexander Dorofeyev alexd4@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.
- Allan