mirror of
https://github.com/devZoGok/vb01.git
synced 2026-09-02 19:28:43 +00:00
GUI quad rendering
improved font and image readers different mesh VAOs for spatial and GUI quads
This commit is contained in:
@@ -11,7 +11,11 @@ namespace vb01{
|
||||
|
||||
if(renderMesh){
|
||||
Root *root = Root::getSingleton();
|
||||
root->initVertexDataOnGpu(meshBase, root->getMeshVAO(), root->getMeshVBO(), root->getMeshEBO(), true);
|
||||
|
||||
if(sp)
|
||||
root->initVertexDataOnGpu(meshBase, root->getMeshVAO(), root->getMeshVBO(), root->getMeshEBO(), true);
|
||||
else
|
||||
root->initVertexDataOnGpu(meshBase, root->getGuiVAO(), root->getGuiVBO(), root->getGuiEBO(), false);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user