etnaviv: reset indexed rendering information when not rendering indexed
authorWladimir J. van der Laan <laanwj@gmail.com>
Fri, 14 Jul 2017 11:26:24 +0000 (13:26 +0200)
committerLucas Stach <l.stach@pengutronix.de>
Fri, 14 Jul 2017 15:19:42 +0000 (17:19 +0200)
commit1d05cec205100f13b2fda18fdd27c6f0eebf6422
tree7bf421d4a74e649e841e32a3cb876dc03ddecd83
parentbb2498a7f69790e22492fb949a1bd14b83cf19c7
etnaviv: reset indexed rendering information when not rendering indexed

A dangling bo object would result in memory corruption while loading a
level in ioquake3_opengl2.

Fixes: 330d0607ed60 (gallium: remove pipe_index_buffer and set_index_buffer)
Suggested-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Wladimir J. van der Laan <laanwj@gmail.com>
Reviewed-by: Lucas Stach <l.stach@pengutronix.de>
src/gallium/drivers/etnaviv/etnaviv_context.c