mesa: Guard against null pointer deref in fbo validation
authorFabian Bieler <der.fabe@gmx.net>
Tue, 5 Apr 2011 13:51:01 +0000 (07:51 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 5 Apr 2011 13:51:01 +0000 (07:51 -0600)
commitc7339d42c603048c0f89276da6576647c4421ba0
tree53741adf9761b7c186eba2061cfa040ff7a19b2b
parentdb0f9e701d59dcfcd3b50f4d245897692f27fec9
mesa: Guard against null pointer deref in fbo validation

This matches the behaviour below when numSamples is compared.

At least with the gallium state tracker this can actually occur if st_render_texture fails.

Signed-off-by: Brian Paul <brianp@vmware.com>
src/mesa/main/fbobject.c