GRAPHICS: Remove use of glMapBuffer (extension)
This commit is contained in:
parent
c08d0f403b
commit
5dcf795fd7
2 changed files with 1 additions and 6 deletions
|
@ -709,9 +709,7 @@ void GfxOpenGLS::translateViewpointFinish() {
|
|||
void GfxOpenGLS::updateEMIModel(const EMIModel* model) {
|
||||
const EMIModelUserData *mud = (const EMIModelUserData *)model->_userData;
|
||||
glBindBuffer(GL_ARRAY_BUFFER, mud->_verticesVBO);
|
||||
void * bufData = glMapBuffer(GL_ARRAY_BUFFER, GL_WRITE_ONLY);
|
||||
memcpy(bufData, model->_drawVertices, 3 * sizeof(float) * model->_numVertices);
|
||||
glUnmapBuffer(GL_ARRAY_BUFFER);
|
||||
glBufferSubData(GL_ARRAY_BUFFER, 0, model->_numVertices * 3 * sizeof(float), model->_drawVertices);
|
||||
}
|
||||
|
||||
void GfxOpenGLS::drawEMIModelFace(const EMIModel* model, const EMIMeshFace* face) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue