OSDN Git Service

mesa/main: factor out common error-checking
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Thu, 22 Nov 2018 11:37:33 +0000 (12:37 +0100)
committerErik Faye-Lund <erik.faye-lund@collabora.com>
Mon, 26 Nov 2018 11:29:54 +0000 (12:29 +0100)
commit42820c572750c30ae86175ae58bb70439dc2e644
tree6c7dbab9821a6acb338f05868cd75642b555b26e
parent5e0a84f31cac14f1ccc5c74ce2e7cd997f267752
mesa/main: factor out common error-checking

This error checking is the same for teximage and texsubimage getters, so
let's factor it out to its own function.

This will be useful when getteximage and gettexsubimage gets their own
error checking routines a bit 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