490 } |
490 } |
491 |
491 |
492 int surfaceVboNumber = m_compiler->vboNumber(surface, SurfacesVboComplement); |
492 int surfaceVboNumber = m_compiler->vboNumber(surface, SurfacesVboComplement); |
493 int colorVboNumber = m_compiler->vboNumber(surface, colors); |
493 int colorVboNumber = m_compiler->vboNumber(surface, colors); |
494 int normalVboNumber = m_compiler->vboNumber(surface, NormalsVboComplement); |
494 int normalVboNumber = m_compiler->vboNumber(surface, NormalsVboComplement); |
495 m_compiler->prepareVBO(surfaceVboNumber, currentDocument()); |
495 m_compiler->prepareVBO(surfaceVboNumber, m_model); |
496 m_compiler->prepareVBO(colorVboNumber, currentDocument()); |
496 m_compiler->prepareVBO(colorVboNumber, m_model); |
497 m_compiler->prepareVBO(normalVboNumber, currentDocument()); |
497 m_compiler->prepareVBO(normalVboNumber, m_model); |
498 GLuint surfaceVbo = m_compiler->vbo(surfaceVboNumber); |
498 GLuint surfaceVbo = m_compiler->vbo(surfaceVboNumber); |
499 GLuint colorVbo = m_compiler->vbo(colorVboNumber); |
499 GLuint colorVbo = m_compiler->vbo(colorVboNumber); |
500 GLuint normalVbo = m_compiler->vbo(normalVboNumber); |
500 GLuint normalVbo = m_compiler->vbo(normalVboNumber); |
501 GLsizei count = m_compiler->vboSize(surfaceVboNumber) / 3; |
501 GLsizei count = m_compiler->vboSize(surfaceVboNumber) / 3; |
502 |
502 |