vbo: Avoid the copy to current in dlists if not required.
authorMathias Fröhlich <Mathias.Froehlich@web.de>
Sun, 17 Oct 2010 16:16:30 +0000 (18:16 +0200)
committerBrian Paul <brianp@vmware.com>
Fri, 10 Dec 2010 17:17:48 +0000 (10:17 -0700)
commitb3d2ec9942303d1d03e28a25b030eb060415abfb
tree533f7c8accc18a7ef8cdf4045be007beacb880ed
parent2a4df8933eaeb0bd0d6e63fee3d23a47c4b3adb7
vbo: Avoid the copy to current in dlists if not required.

The current state is allowed to be undefined past DrawElements et al.
Consequently omit that copying at least in the display list code.
This pays us some percents performance.

Signed-off-by: Brian Paul <brianp@vmware.com>
src/mesa/vbo/vbo.h
src/mesa/vbo/vbo_save.h
src/mesa/vbo/vbo_save_api.c