st/mesa: check for zero-size image in st_TestProxyTexImage()
authorBrian Paul <brianp@vmware.com>
Fri, 21 Sep 2012 14:09:01 +0000 (08:09 -0600)
committerBrian Paul <brianp@vmware.com>
Mon, 24 Sep 2012 13:58:45 +0000 (07:58 -0600)
commitf1c448d2e59bd14b4ddb63654e7b6d605f877d10
tree51b523362a397907cdaddcfc3522d21407f1ba84
parentc432c86e6aeebeb46c028af940224c59faa16e88
st/mesa: check for zero-size image in st_TestProxyTexImage()

Fixes divide by zero issue in llvmpipe driver.

Reviewed-by: José Fonseca <jfonseca@vmware.com>
src/mesa/state_tracker/st_cb_texture.c