mirror of
https://github.com/love2d/love.git
synced 2026-08-14 01:20:56 +02:00
ImageData: remove automatic mutex locks.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user