mirror of
https://github.com/devZoGok/vb01.git
synced 2026-08-27 12:03:25 +00:00
factored out texture GPU data loading
improved texture buffer and layer retrieval using draw commands 1:1 with meshes
This commit is contained in:
+2
-2
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user