Add some FLUSH_CURRENT() calls.
authorBrian <brian.paul@tungstengraphics.com>
Wed, 17 Oct 2007 22:18:45 +0000 (16:18 -0600)
committerKeith Whitwell <keith@tungstengraphics.com>
Mon, 22 Sep 2008 05:13:51 +0000 (22:13 -0700)
commit87534210bb9fe5f4e3053d12123491a8c2ccbf6d
tree7c5b1d1e06162390f204d519c827ac5963624049
parent411d6672a6f3b228faebcf13da90388ea7671ae2
Add some FLUSH_CURRENT() calls.

Without these we can find ourselves in _mesa_load_state_parameters()
computing derived lighting/material values whhen the current material
properties haven't been updated from the VBO.
This may be a somewhat wide-spread problem that needs more attention...
(cherry picked from commit 49adf51eeec31c9f3c995a70acc5008522689708)
src/mesa/main/buffers.c
src/mesa/main/drawpix.c