I’m using a radeon driver on a linux machine and programming with Mesa, and i’m trying to understand when FlushVertices is called. Specifically, when will the second if statement be true? take a look at the code below:
void FlushVertices( GLcontext *ctx, GLuint new_state )
{
if( ctx ){
if( ctx->Driver.NeedFlush & FLUSH_STORED_VERTICES ){
radeonFlushVertices( ctx, FLUSH_STORED_VERTICES );
}
ctx->NewState |= new_state;
}
}
Thanks