Original Post
Hey All I'm loading textures on a thread using D3DXCreateTextureFromFileEx(). When the thread completes, I need to swap textures. I'm doing it like this: pOldTexture->Release(); pOldTexture = pNewTexture; This works great, except for once in a while it crashes, as you might expect because I've done nothing to prevent the thread from completing at random times. What do I need to do to make texture loading in DX thread safe? -programmer_tom