Texture ID allocated when creating a texture may collide with another texture ID if there are more than one instance attempting to allocate an ID simultaneously.
This PR introduces exclusive control of texture allocation status and makes it thread safe.
Overview
Changed texture allocation status as thread safe.
Texture ID allocated when creating a texture may collide with another texture ID if there are more than one instance attempting to allocate an ID simultaneously. This PR introduces exclusive control of texture allocation status and makes it thread safe.