Add tests for sf::Texture::generateMipmap

This commit is contained in:
Chris Thrasher 2023-09-05 09:15:16 -06:00
parent d7ab9208be
commit 70f9d49559

View File

@ -191,6 +191,14 @@ TEST_CASE("[Graphics] sf::Texture", runDisplayTests())
CHECK(!texture.isRepeated()); CHECK(!texture.isRepeated());
} }
SECTION("generateMipmap()")
{
sf::Texture texture;
CHECK(!texture.generateMipmap());
CHECK(texture.create({100, 100}));
CHECK(texture.generateMipmap());
}
SECTION("swap()") SECTION("swap()")
{ {
constexpr std::uint8_t blue[] = {0x00, 0x00, 0xFF, 0xFF}; constexpr std::uint8_t blue[] = {0x00, 0x00, 0xFF, 0xFF};