r100/r200/r300/r600: Set MaxCombinedTextureImageunits.
authorPauli Nieminen <suokkos@gmail.com>
Sun, 7 Feb 2010 01:06:27 +0000 (03:06 +0200)
committerPauli Nieminen <suokkos@gmail.com>
Sun, 7 Feb 2010 11:13:23 +0000 (13:13 +0200)
commit0943706d35e3955cacbc3b690cfb1e2dfb78d639
tree8428ef4aea41d9013e584976006aea96c4fbacbd
parent76a9831b2b20d59c49b5f25ba5275f17b4e2067b
r100/r200/r300/r600: Set MaxCombinedTextureImageunits.

Fixes glActiveTexture to set GL_INVALID_ENUM when trying
to activate texture unit that is not available.

piglit test case general/texunit passes now.
src/mesa/drivers/dri/r200/r200_context.c
src/mesa/drivers/dri/r300/r300_context.c
src/mesa/drivers/dri/r600/r600_context.c
src/mesa/drivers/dri/radeon/radeon_context.c