mesa/main: factor out tex-image error-checking
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Thu, 22 Nov 2018 11:17:32 +0000 (12:17 +0100)
committerErik Faye-Lund <erik.faye-lund@collabora.com>
Mon, 26 Nov 2018 11:29:54 +0000 (12:29 +0100)
commit5e0a84f31cac14f1ccc5c74ce2e7cd997f267752
treefb9b46f9b0bca0524e15319d623ed5478d1766f0
parent38bbb61252aa503571986080afddd98a56bcf2e7
mesa/main: factor out tex-image error-checking

This will be useful when we split error-checking for getteximage and
gettexsubimage later.

Signed-off-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Reviewed-by: Juan A. Suarez <jasuarez@igalia.com>
src/mesa/main/texgetimage.c