Rather than always allocating 100 instructions, put instructions into a
authorBrian Paul <brian.paul@tungstengraphics.com>
Sun, 29 Oct 2006 21:17:18 +0000 (21:17 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Sun, 29 Oct 2006 21:17:18 +0000 (21:17 +0000)
commite998c346471142db91a1bcb6c61551b8247b87e7
treef19188f00f060439a0502e908463e936709a2b37
parentebcedd2d8909cc00d8528d76d3a1990315f270ea
Rather than always allocating 100 instructions, put instructions into a
temporary buffer, then copy into a malloc'd array of the correct size.
According to Glean texCombine, we never need more than 21 instructions.
src/mesa/main/texenvprogram.c