mirror of
https://github.com/love2d/love.git
synced 2026-08-17 11:00:31 +02:00
Improved performance when using ImageData methods in multiple threads when ImageData:encode is called
This commit is contained in:
@@ -45,7 +45,7 @@ public:
|
||||
int width, height;
|
||||
size_t size;
|
||||
unsigned char *data;
|
||||
DecodedImage() : width(0), height(0), size(0), data(0) {};
|
||||
DecodedImage() : width(0), height(0), size(0), data(0) {}
|
||||
};
|
||||
|
||||
// Pixel data encoded in a particular format.
|
||||
@@ -53,7 +53,7 @@ public:
|
||||
{
|
||||
size_t size;
|
||||
unsigned char *data;
|
||||
EncodedImage() : size(0), data(0) {};
|
||||
EncodedImage() : size(0), data(0) {}
|
||||
};
|
||||
|
||||
// Lets pretend we have virtual static methods...
|
||||
|
||||
Reference in New Issue
Block a user