diff --git a/libraries/gpu/src/gpu/Texture_ktx.cpp b/libraries/gpu/src/gpu/Texture_ktx.cpp index 30e24276df..65028f7b8a 100644 --- a/libraries/gpu/src/gpu/Texture_ktx.cpp +++ b/libraries/gpu/src/gpu/Texture_ktx.cpp @@ -498,14 +498,16 @@ TexturePointer Texture::build(const ktx::KTXDescriptor& descriptor) { GPUKTXPayload gpuktxKeyValue; if (!GPUKTXPayload::findInKeyValues(descriptor.keyValues, gpuktxKeyValue)) { - qCWarning(gpulogging) << "Could not find GPUKTX key values."; +#if defined(Q_OS_ANDROID) // FIXME use sensible defaults based on the texture type and format gpuktxKeyValue._usageType = TextureUsageType::RESOURCE; gpuktxKeyValue._usage = Texture::Usage::Builder().withColor().withAlpha().build(); +#else + qCWarning(gpulogging) << "Could not find GPUKTX key values."; + return TexturePointer(); +#endif } - - auto texture = create(gpuktxKeyValue._usageType, type, texelFormat,