mesa: Generate a renderbuffer wrapper even if the texture has no image
authorIan Romanick <ian.d.romanick@intel.com>
Sun, 28 Jul 2013 20:08:27 +0000 (13:08 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Tue, 6 Aug 2013 19:18:50 +0000 (12:18 -0700)
commit2f9fe2d80a35b8857682771fddbee628213da7b3
tree9a2f5255bba2c576973e623bf0687c7782f25bb3
parent25281fef0f480260c2e180e70af3eafdd5ecc9cd
mesa: Generate a renderbuffer wrapper even if the texture has no image

This prevents a segfault in check_begin_texture_render when an FBO is
rebound while in this state.  This fixes the piglit test
fbo-incomplete-invalid-texture.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Acked-by: Kenneth Graunke <kenneth@whitecape.org>
Cc: "9.1 9.2" mesa-stable@lists.freedesktop.org
src/mesa/main/fbobject.c