1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-16 14:00:40 +00:00

Make RID_Owner<Texture> threadsafe in TextureStorage for gles3

This commit is contained in:
ACB
2024-02-11 13:12:21 +01:00
parent 4e990cd7e5
commit 09d2c09434
2 changed files with 3 additions and 3 deletions

View File

@@ -172,7 +172,7 @@ private:
void cleanup();
};
//textures can be created from threads, so this RID_Owner is thread safe
// Textures can be created from threads, so this RID_Owner is thread safe.
mutable RID_Owner<Texture, true> texture_owner;
Texture *get_texture(RID p_rid) { return texture_owner.get_or_null(p_rid); };