[+] Use "buffer" ID against "bufferView" ID for Open3DGC-compression.

This commit is contained in:
Alexandr Arutjunov
2016-08-09 13:37:32 +03:00
parent 9a4fa1321b
commit 778ad7f06f
3 changed files with 3 additions and 3 deletions

View File

@@ -426,7 +426,7 @@ bool comp_allow;// Point that data of current mesh can be compressed.
Mesh::SCompression_Open3DGC* ext = new Mesh::SCompression_Open3DGC;
// Fill it.
ext->BufferView = p.indices->bufferView->id;
ext->Buffer = b->id;
ext->Offset = idx_srcdata_begin;
ext->Count = b->byteLength - idx_srcdata_begin;
ext->IndicesCount = comp_o3dgc_ifs.GetNCoordIndex();