Re: [xmoto-dev] VBO

[ Thread Index | Date Index | More lists.tuxfamily.org/xmoto-dev Archives ]


On 12/21/06, nadenislamarre@xxxxxxx <nadenislamarre@xxxxxxx> wrote:
Kees, if it's a bug a that you change something, commit on both branches please.

...

if(m_Geoms[i]->Polys[j]->nVertexBufferID) {
 getParent()->glDeleteBuffersARB(1, (GLuint
*)&m_Geoms[i]->Polys[j]->nVertexBufferID);
 getParent()->glDeleteBuffersARB(1, (GLuint *)
&m_Geoms[i]->Polys[j]->nTexCoordBufferID);
}

...

nVertexBufferID is only not 0 if VBOs are enabled, so it's not really a bug.

Otherwise it would probably also cause a seg fault each time a level
was "unprepared".

--
Rasmus Neckelmann



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/