Add Data:performAtomic to lock a mutex while using a Data object.

This commit is contained in:
Sasha Szpakowski
2024-02-18 17:07:24 -04:00
parent 007090af14
commit ae6800e0e0
5 changed files with 58 additions and 14 deletions
-5
View File
@@ -764,11 +764,6 @@ void ImageData::paste(ImageData *src, int dx, int dy, int sx, int sy, int sw, in
}
}
love::thread::Mutex *ImageData::getMutex() const
{
return mutex;
}
size_t ImageData::getPixelSize() const
{
return getPixelFormatBlockSize(format);