main: Add check_texture_buffer_target.
authorLaura Ekstrand <laura@jlekstrand.net>
Wed, 4 Mar 2015 22:46:02 +0000 (14:46 -0800)
committerLaura Ekstrand <laura@jlekstrand.net>
Mon, 9 Mar 2015 20:33:54 +0000 (13:33 -0700)
commit311b3686fe7433b1624384f7d344cc23d6363df2
treed84c91f8a29d712b06c1fd486a8977aa9766fbce
parent5f8c6eabbeb698b6dc653eda9dcf01704e53ae58
main: Add check_texture_buffer_target.

Creates a shared function to ensure that texture buffer target is
GL_TEXTURE_BUFFER. Helps to clean up the Tex[ture]Buffer[Range] functions.

v2: Review from Anuj Phogat
   - Split rebase of Tex[ture]Buffer[Range]

Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
src/mesa/main/teximage.c