diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2021-01-22 14:51:05 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-22 14:51:05 +0100 |
commit | d39f6386ce3a7916dbb94fef5ff65e7599e060f0 (patch) | |
tree | 3bfc4261f2d9bbfcc7425d29a829a3c5d6d73fc7 /scene/resources/texture.cpp | |
parent | 2a3e771f4cb2b01d6cbd4bf09e1fbd27e3b019c0 (diff) | |
parent | 8ed259b792f3a94939422384c829a6c6973afec8 (diff) | |
download | redot-engine-d39f6386ce3a7916dbb94fef5ff65e7599e060f0.tar.gz |
Merge pull request #45314 from RandomShaper/modernize_rwlock
Modernize RWLock
Diffstat (limited to 'scene/resources/texture.cpp')
-rw-r--r-- | scene/resources/texture.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/scene/resources/texture.cpp b/scene/resources/texture.cpp index 342a97fd85..9a987ae8b1 100644 --- a/scene/resources/texture.cpp +++ b/scene/resources/texture.cpp @@ -2136,20 +2136,11 @@ AnimatedTexture::AnimatedTexture() { pause = false; oneshot = false; RenderingServer::get_singleton()->connect("frame_pre_draw", callable_mp(this, &AnimatedTexture::_update_proxy)); - -#ifndef NO_THREADS - rw_lock = RWLock::create(); -#else - rw_lock = nullptr; -#endif } AnimatedTexture::~AnimatedTexture() { RS::get_singleton()->free(proxy); RS::get_singleton()->free(proxy_ph); - if (rw_lock) { - memdelete(rw_lock); - } } /////////////////////////////// |