mirror of
https://github.com/love2d/love.git
synced 2026-08-16 00:02:12 +02:00
Improve the error message when an invalid layer or face index is given in love.graphics.setMode.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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.)
|
||||
|
||||
Reference in New Issue
Block a user