diff --git a/drivers/gles3/storage/texture_storage.h b/drivers/gles3/storage/texture_storage.h index 83f31d122c93..91bb676711e0 100644 --- a/drivers/gles3/storage/texture_storage.h +++ b/drivers/gles3/storage/texture_storage.h @@ -404,8 +404,8 @@ class TextureStorage : public RendererTextureStorage { RID_Owner canvas_texture_owner; /* Texture API */ - - mutable RID_Owner texture_owner; + // Textures can be created from threads, so this RID_Owner is thread safe. + mutable RID_Owner texture_owner; Ref _get_gl_image_and_format(const Ref &p_image, Image::Format p_format, Image::Format &r_real_format, GLenum &r_gl_format, GLenum &r_gl_internal_format, GLenum &r_gl_type, bool &r_compressed, bool p_force_decompress) const; diff --git a/servers/rendering/renderer_rd/storage_rd/texture_storage.h b/servers/rendering/renderer_rd/storage_rd/texture_storage.h index c665b02e14b3..1304b284d507 100644 --- a/servers/rendering/renderer_rd/storage_rd/texture_storage.h +++ b/servers/rendering/renderer_rd/storage_rd/texture_storage.h @@ -172,7 +172,7 @@ class TextureStorage : public RendererTextureStorage { 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_owner; Texture *get_texture(RID p_rid) { return texture_owner.get_or_null(p_rid); };