r300: Call radeonSetCliprects from radeonMakeCurrent.
authorMichel Dänzer <michel@tungstengraphics.com>
Tue, 6 Mar 2007 12:22:35 +0000 (13:22 +0100)
committerMichel Dänzer <michel@tungstengraphics.com>
Tue, 6 Mar 2007 12:22:35 +0000 (13:22 +0100)
commit6f9b1afc862851532e4820705c412388b497ad58
treeb5b173a5e3fcb9908bd3cea4be40c90ea45b1f79
parent1c70cde8881f794782780cbd695da0882f78c769
r300: Call radeonSetCliprects from radeonMakeCurrent.

Based on a patch by Panagiotis Papadakos.

Among other things, this makes sure the framebuffer object associated with the
drawable has the correct size when _mesa_make_current is called, so the default
viewport is set up correctly.

Also update radeon->lastStamp in radeonSetCliprects.
src/mesa/drivers/dri/r300/radeon_context.c
src/mesa/drivers/dri/r300/radeon_lock.c
src/mesa/drivers/dri/r300/radeon_state.c