factored out texture GPU data loading

improved texture buffer and layer retrieval
using draw commands 1:1 with meshes
This commit is contained in:
devZoGok
2026-07-08 12:08:03 +03:00
parent e448f7003e
commit f457c69d36
11 changed files with 85 additions and 158 deletions
+2 -2
View File
@@ -208,9 +208,9 @@ namespace vb01{
numShapeKeys
);
Root *root = Root::getSingleton();
root->initVertexDataOnGpu(meshData, root->getMeshVAO(), root->getMeshVBO(), root->getMeshEBO(), true);
Mesh *mesh = new Mesh(meshData);
Root *root = Root::getSingleton();
root->initVertexDataOnGpu(mesh->getMeshBase(), root->getMeshVAO(), root->getMeshVBO(), root->getMeshEBO(), true);
return mesh;
}