radeon: Don't crash generating mipmaps when pixels=NULL
authorOwen W. Taylor <otaylor@fishsoup.net>
Sat, 9 May 2009 19:23:34 +0000 (15:23 -0400)
committerAlex Deucher <alexdeucher@gmail.com>
Wed, 13 May 2009 23:06:24 +0000 (19:06 -0400)
commitca792be42b238bd1c8f8a99ad72ea8558cbbfc32
treeff99a77dde2303f3b0f4e66193b72552393a1ddb
parentea6a74abbe4053b958d640425e061f0ceec92291
radeon: Don't crash generating mipmaps when pixels=NULL

When a NULL value of pixels is passed to TexImage2D and
SGIS_generate_mipmap is enabled, don't try to generate the
mipmap tree: we don't have data yet for the texture and will
crash.

https://bugs.freedesktop.org/show_bug.cgi?id=21648
src/mesa/drivers/dri/radeon/radeon_texture.c