ImageData: remove automatic mutex locks.

This commit is contained in:
Sasha Szpakowski
2024-02-18 17:06:40 -04:00
parent d880c48502
commit 007090af14
9 changed files with 25 additions and 123 deletions
@@ -192,6 +192,7 @@ GraphicsReadback::Status GraphicsReadback::readbackBuffer(Buffer *buffer, size_t
if (imageData.get())
{
// Always lock the mutex since the user can't know when to do it.
love::thread::Lock lock(imageData->getMutex());
if (imageData->getWidth() != rect.w)