alpha values for ImageData:mapPixel default to 255 (issue #603)

This commit is contained in:
Alex Szpakowski
2013-04-19 14:20:11 -03:00
parent 6142352cd4
commit e9ff803c42
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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;