GRAPHICS: Remove use of glMapBuffer (extension)

This commit is contained in:
Dries Harnie 2014-04-01 23:05:23 +02:00
parent c08d0f403b
commit 5dcf795fd7
2 changed files with 1 additions and 6 deletions

View file

@ -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) {