OSDN Git Service

mesa: expose dimension check for glTex*Storage functions
authorTapani Pälli <tapani.palli@intel.com>
Mon, 10 Aug 2015 07:50:06 +0000 (10:50 +0300)
committerTapani Pälli <tapani.palli@intel.com>
Wed, 19 Aug 2015 04:25:09 +0000 (07:25 +0300)
commita342becc490b38436396e98ee653a6b81c037663
tree771384c83532f93f62842ccf2ee5bddf6f9b590d
parent2b40a144b7a589ebd5e80c9a8a8241c53201035e
mesa: expose dimension check for glTex*Storage functions

This is done so that following patch can use it to verify dimensions
for multisample variants of glTex*Storage.

v2: move function to header, use bool instead GLboolean
v3: small changes, cleanup

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Timothy Arceri <t_arceri@yahoo.com.au>
src/mesa/main/texstorage.c
src/mesa/main/texstorage.h