diff options
author | Brian Paul <[email protected]> | 2014-04-23 09:49:58 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2014-04-24 08:16:01 -0600 |
commit | 7cc2e2e99d857617178ce01f52ae2a9b04da3275 (patch) | |
tree | b33c4297ff392224a513df2ad43a0309e49adf2e /src/mesa/swrast/s_bitmap.c | |
parent | 15c92464df07c5c0bb23a007358c560faeab76a8 (diff) |
swrast: allocate swrast_texture_image::ImageSlices array if needed
Fixes a segmentation fault in conform divzero.c test.
This happens when glTexImage(level, width=0, height=0) is called. We
don't allocate texture memory in that case so the ImageSlices array
was never allocated.
Cc: "10.1" <[email protected]>
Reviewed-by: José Fonseca <[email protected]>
Diffstat (limited to 'src/mesa/swrast/s_bitmap.c')
0 files changed, 0 insertions, 0 deletions