intel: Unobfuscate intel_alloc_renderbuffer_storage
authorChad Versace <chad@chad-versace.us>
Wed, 15 Jun 2011 00:38:30 +0000 (17:38 -0700)
committerChad Versace <chad@chad-versace.us>
Tue, 21 Jun 2011 18:21:57 +0000 (11:21 -0700)
commit36e05c6870fc466053b4f54edd890e19d5ac9dcf
tree1a02ebb850ce7ec994d00c3c3108801b78ae8f3c
parent39d0e3632a4ccb10f2ce6578151e854ba52d3c0e
intel: Unobfuscate intel_alloc_renderbuffer_storage

Hiz buffer allocation can only occur if the 'else' branch has been taken,
so move the hiz buffer allocation into the 'else' branch.

Having the hiz buffer allocation dangling outside of the if-tree was just
damn confusing.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Signed-off-by: Chad Versace <chad@chad-versace.us>
src/mesa/drivers/dri/intel/intel_fbo.c