Revert adding APIs

This commit is contained in:
daemyung jang
2022-02-04 07:26:23 +09:00
committed by Mathias Agopian
parent 1924810c17
commit 0d2faa4573
4 changed files with 4 additions and 12 deletions

View File

@@ -502,8 +502,7 @@ bool ResourceLoader::loadResources(FFilamentAsset* asset, bool async) {
uploadCallback, uploadUserdata(asset)));
slot.vertexBuffer->setBufferObjectAt(engine, slot.bufferIndex, bo);
continue;
}
else if (slot.indexBuffer) {
} else if (slot.indexBuffer) {
if (accessor->component_type == cgltf_component_type_r_8u) {
const size_t size16 = size * 2;
uint16_t* data16 = (uint16_t*) malloc(size16);