Skip to content

Commit

Permalink
fix this issue in Image
Browse files Browse the repository at this point in the history
  • Loading branch information
TurtleP committed May 21, 2022
1 parent 8818ef7 commit bb8b786
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platform/switch/source/objects/image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Image::Image(const Slices& slices, bool validate) :
}

Image::Image(TextureType type, PixelFormat format, int width, int height, int slices) :
Image(Slices(textureType), false)
Image(Slices(type), false)
{
if (love::IsPixelFormatCompressed(format))
throw love::Exception("This constructor only supports non-compressesd pixel formats.");
Expand Down

0 comments on commit bb8b786

Please sign in to comment.