meta: Refactor code for binding a texture image to the FBO.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 6 Mar 2014 03:19:32 +0000 (19:19 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Sat, 8 Mar 2014 06:45:14 +0000 (22:45 -0800)
commitbe84d53d445419062173216ffc7e5e111fe23353
treec1cefd0dbfc90055450107a4efc1656f04e6947f
parent45ee1b30d76cae79b5040bda72ecd87d7d39f1e3
meta: Refactor code for binding a texture image to the FBO.

Almost the exact same code appeared twice, and it needs to expand to
handle additional texture targets.  Refactor it to tidy up the code and
avoid duplicating more work in the future.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/drivers/common/meta_generate_mipmap.c