mesa: Refactor _mesa_framebuffer_renderbuffer
authorIan Romanick <ian.d.romanick@intel.com>
Thu, 12 Nov 2015 00:30:41 +0000 (16:30 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Wed, 10 Feb 2016 18:59:28 +0000 (10:59 -0800)
commit9ae42ab1ec7024814494cf65c4527c1b9ad98cd0
treeb8d1cef9579cac54c828d6bea7fe50ec62204d71
parent7aedbbacae6d3ec3d06735fff2eb662964773ad2
mesa: Refactor _mesa_framebuffer_renderbuffer

This function previously was only used in fbobject.c and contained a
bunch of API validation.  Split the function into
framebuffer_renderbuffer that is static and contains the validation, and
_mesa_framebuffer_renderbuffer that is suitable for calling from
elsewhere in Mesa (e.g., meta).

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
src/mesa/main/fbobject.c
src/mesa/main/fbobject.h