mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 16:58:09 +02:00
Deal with function signature changes
This commit is contained in:
parent
cd489f1fe4
commit
c4ecd39d70
1 changed files with 3 additions and 2 deletions
|
@ -15,6 +15,7 @@
|
||||||
#include <ktx/KTX.h>
|
#include <ktx/KTX.h>
|
||||||
#include <gpu/Texture.h>
|
#include <gpu/Texture.h>
|
||||||
#include <image/Image.h>
|
#include <image/Image.h>
|
||||||
|
#include <image/TextureProcessing.h>
|
||||||
|
|
||||||
|
|
||||||
QTEST_GUILESS_MAIN(KtxTests)
|
QTEST_GUILESS_MAIN(KtxTests)
|
||||||
|
@ -78,8 +79,8 @@ void KtxTests::testKtxSerialization() {
|
||||||
QImage image(TEST_IMAGE);
|
QImage image(TEST_IMAGE);
|
||||||
std::atomic<bool> abortSignal;
|
std::atomic<bool> abortSignal;
|
||||||
gpu::TexturePointer testTexture =
|
gpu::TexturePointer testTexture =
|
||||||
image::TextureUsage::process2DTextureColorFromImage(std::move(image), TEST_IMAGE.toStdString(), true, abortSignal);
|
image::TextureUsage::process2DTextureColorFromImage(std::move(image), TEST_IMAGE.toStdString(), true, gpu::BackendTarget::GL45, true, abortSignal);
|
||||||
auto ktxMemory = gpu::Texture::serialize(*testTexture);
|
auto ktxMemory = gpu::Texture::serialize(*testTexture, glm::ivec2(testTexture->getWidth(), testTexture->getHeight()));
|
||||||
QVERIFY(ktxMemory.get());
|
QVERIFY(ktxMemory.get());
|
||||||
|
|
||||||
// Serialize the image to a file
|
// Serialize the image to a file
|
||||||
|
|
Loading…
Reference in a new issue