mesa: remove usage of alloca in externalobjects.c v4
authorAndres Rodriguez <andresx7@gmail.com>
Wed, 31 Jan 2018 17:22:41 +0000 (12:22 -0500)
committerAndres Rodriguez <andresx7@gmail.com>
Thu, 1 Feb 2018 14:48:04 +0000 (09:48 -0500)
commitbbd00844a2244cfe2702a5577a8d68f65877952a
treeda0782320b739beba526ebca6b0c683b4e659972
parent2ef5ce11985c7ccd34887d00ab57e32d4036dbed
mesa: remove usage of alloca in externalobjects.c v4

Don't want an overly large numBufferBarriers/numTextureBarriers to blow
up the stack.

v2: handle malloc errors
v3: fix patch
v4: initialize texObjs/bufObjs

Suggested-by: Emil Velikov <emil.velikov@collabora.com>
Signed-off-by: Andres Rodriguez <andresx7@gmail.com>
src/mesa/main/externalobjects.c