gallium/util: Save and restore vertex buffer state in util_gen_mipmap.
authorStuart Abercrombie <sabercrombie@chromium.org>
Fri, 29 Jun 2012 23:31:24 +0000 (16:31 -0700)
committerMarek Olšák <maraeo@gmail.com>
Wed, 4 Jul 2012 01:48:29 +0000 (03:48 +0200)
commit95ce454c8c4397a67aa038d91667882e413314d3
tree7d348f7b5cfc26ef53f86cfd05aa3c559a47ec41
parent567fcd2eb9bf31d5abe9e78677a0c35e4d07e420
gallium/util: Save and restore vertex buffer state in util_gen_mipmap.

Calling glGenerateMipmap could overwrite vertex buffer state, leading
 to incorrect rendering or crashes depending on the Gallium driver.

This was happening on WebGL Conformance test texture-size.

Before 784dd51198433e5c299da4a7742c68d21d68d1c1 this was covered up
by redundant vertex buffer validation.

Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
Signed-off-by: Marek Olšák <maraeo@gmail.com>
src/gallium/auxiliary/util/u_gen_mipmap.c