diff --git a/tests/ktx/src/KtxTests.cpp b/tests/ktx/src/KtxTests.cpp index 5158ad2fd4..9d65084638 100644 --- a/tests/ktx/src/KtxTests.cpp +++ b/tests/ktx/src/KtxTests.cpp @@ -15,6 +15,7 @@ #include #include #include +#include QTEST_GUILESS_MAIN(KtxTests) @@ -78,8 +79,8 @@ void KtxTests::testKtxSerialization() { QImage image(TEST_IMAGE); std::atomic abortSignal; gpu::TexturePointer testTexture = - image::TextureUsage::process2DTextureColorFromImage(std::move(image), TEST_IMAGE.toStdString(), true, abortSignal); - auto ktxMemory = gpu::Texture::serialize(*testTexture); + image::TextureUsage::process2DTextureColorFromImage(std::move(image), TEST_IMAGE.toStdString(), true, gpu::BackendTarget::GL45, true, abortSignal); + auto ktxMemory = gpu::Texture::serialize(*testTexture, glm::ivec2(testTexture->getWidth(), testTexture->getHeight())); QVERIFY(ktxMemory.get()); // Serialize the image to a file