X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fmodel.cpp;fp=src%2Fmodel.cpp;h=1d4edef0b17fea6ea45845c67a9b2333535f858e;hb=d01ca2cb76681d7795bb4b483d7033b86410725a;hp=62a90e554837ee18cf2fa66552e66020a8e6e7c4;hpb=15ff5ed48855c6bd09bc8f5152f46065484c1e94;p=blank.git diff --git a/src/model.cpp b/src/model.cpp index 62a90e5..1d4edef 100644 --- a/src/model.cpp +++ b/src/model.cpp @@ -93,7 +93,6 @@ void Model::Update(const Buffer &buf) { void Model::Draw() const { glBindVertexArray(va); - glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, handle[ATTRIB_INDEX]); glDrawElements( GL_TRIANGLES, // how count, // count @@ -191,7 +190,6 @@ void BlockModel::Update(const Buffer &buf) { void BlockModel::Draw() const { glBindVertexArray(va); - glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, handle[ATTRIB_INDEX]); glDrawElements( GL_TRIANGLES, // how count, // count @@ -279,7 +277,6 @@ void OutlineModel::Draw() { glEnable(GL_LINE_SMOOTH); glLineWidth(2.0f); - glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, handle[ATTRIB_INDEX]); glDrawElements( GL_LINES, // how indices.size(), // count