Fix in t_vp_build: Missed necessary updates sometimes
authorNicolai Haehnle <nhaehnle@gmail.com>
Mon, 2 Apr 2007 18:59:51 +0000 (20:59 +0200)
committerNicolai Haehnle <nhaehnle@gmail.com>
Mon, 2 Apr 2007 19:01:32 +0000 (21:01 +0200)
commitdba21ed913da2222e3b55fc8ba724ca93acbabf1
treeca183aca675b8ebe0e5ef44f6f4f226567642377
parent66d336808d3eb01eab42fb311b932bfe9f7c6b1c
Fix in t_vp_build: Missed necessary updates sometimes

_mesa_update_state doesn't always reset VertexProgram._Current to NULL.
This caused us to skip a necessary update of the fixed function vertex
program sometimes.

Change the logic such that we check for updates whenever the _Current
program is either NULL or the program generated by t_vp_build.
src/mesa/tnl/t_vp_build.c