Compare commits
1 Commits
v6.0.1
...
bugfix/fix
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
676ef9637b |
@@ -614,6 +614,8 @@ void glTF2Exporter::GetMatTex(const aiMaterial &mat, Ref<Texture> &texture, unsi
|
||||
|
||||
// The asset has its own buffer, see Image::SetData
|
||||
// basisu: "image/ktx2", "image/basis" as is
|
||||
const size_t length = curTex->mWidth * curTex->mHeight;
|
||||
//texture->source->SetData(reinterpret_cast<uint8_t *>(curTex->pcData), length, *mAsset);
|
||||
texture->source->SetData(reinterpret_cast<uint8_t *>(curTex->pcData), curTex->mWidth, *mAsset);
|
||||
} else {
|
||||
texture->source->uri = path;
|
||||
|
||||
Reference in New Issue
Block a user