swrast: fix delayed texel buffer allocation regression for OpenMP
authorAndreas Fänger <a.faenger@e-sign.com>
Tue, 7 Jan 2014 10:10:00 +0000 (03:10 -0700)
committerBrian Paul <brianp@vmware.com>
Tue, 7 Jan 2014 15:03:49 +0000 (08:03 -0700)
commit2a0fb946e147f5482c93702fbf46ffdf5208f57c
tree7147d8e48648b9f86a540910a6cf474960ae2f85
parentaa4e2243a253d981e5f04426d509cd8257d140c4
swrast: fix delayed texel buffer allocation regression for OpenMP

Commit 9119269ca14ed42b51c7d8e2e662500311b29fa3 moved the texel
buffer allocation to _swrast_texture_span(), however, when compiled
with OpenMP support this code already runs multi-threaded so a
critical section is required to prevent multiple allocations and
rendering errors.

Cc: "10.0" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/swrast/s_texcombine.c