mirror of
https://github.com/love2d/love.git
synced 2026-08-14 01:20:56 +02:00
alpha values for ImageData:mapPixel default to 255 (issue #603)
This commit is contained in:
@@ -49,7 +49,7 @@ void *CompressedData::getData() const
|
||||
{
|
||||
// Data for different mipmap levels is not stored contiguously in memory, so
|
||||
// getData() won't work properly for CompressedData.
|
||||
if (dataImages.size() > 0)
|
||||
if (dataImages.size() > 0 && dataImages[0].size > 0)
|
||||
return (void *) &(dataImages[0].data[0]);
|
||||
else
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user