maeda6uiui / Mechtatel

Yet unfinished Vulkan-based game engine composed in Java
MIT License
0 stars 0 forks source link

Change texture allocation status as thread safe #17

Closed maeda6uiui closed 1 month ago

maeda6uiui commented 1 month ago

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.