Improve the error message when an invalid layer or face index is given in love.graphics.setMode.

This commit is contained in:
Alex Szpakowski
2018-01-14 19:15:24 -04:00
parent 4d5c4ef807
commit 39201af79f
8 changed files with 76 additions and 58 deletions
+1 -1
View File
@@ -91,7 +91,7 @@ void *CompressedImageData::getData() const
return memory->data;
}
int CompressedImageData::getMipmapCount(int /*slice*/) const
int CompressedImageData::getMipmapCount() const
{
return (int) dataImages.size();
}
+1 -1
View File
@@ -61,7 +61,7 @@ public:
* Gets the number of mipmaps in this Compressed Image Data.
* Includes the base image level.
**/
int getMipmapCount(int slice = 0) const;
int getMipmapCount() const;
/**
* Gets the number of slices (array layers, cube faces, 3D layers, etc.)