[Mesa-dev] [PATCH] vbo: signal _NEW_ARRAY when transitioning between glBegin/End, glDrawArrays

Mathias Fröhlich Mathias.Froehlich at gmx.net
Thu Dec 22 23:14:56 PST 2011


Hi,

On Thursday, December 22, 2011 18:30:44 Brian Paul wrote:
> I'm not sure if "playback_vertex_list" is more like DRAW_BEGIN_END or
> DRAW_ARRAYS.
> Maybe add a DRAW_DISPLAY_LIST enum value?

It's more like begin/end I think.
The begin/end code just sets the array state below the state tracking of the 
api function. And the way this happens is very much the same for save and draw 
when you look at the code that binds the vbos.

To me it makes perfectly sense that the vbo_{save,exec}_draw just disturbs the 
vbo_array_draw path. So, probably a simple flag that marks if we were drawing 
by vbo_{save,exec}_draw.c the last time would do the job also.

But if you think you want to distinguish this, go ahead...
I also believe that this difference we are talking about will only trigger in 
very few untypical cases.

Greetings

Mathias


More information about the mesa-dev mailing list