OSDN Git Service

mesa/main: check cube-completeness in common code
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Thu, 22 Nov 2018 16:40:47 +0000 (17:40 +0100)
committerErik Faye-Lund <erik.faye-lund@collabora.com>
Mon, 26 Nov 2018 11:29:54 +0000 (12:29 +0100)
commit38af69adfaf47019926bfe3a8cf352752068d389
tree2255d8acfca9047f3c9eae57084fe08718490452
parent42820c572750c30ae86175ae58bb70439dc2e644
mesa/main: check cube-completeness in common code

This check is the only part of dimensions_error_check that isn't about
error-checking the offset and size arguments of
glGet[Compressed]TextureSubImage(), so it doesn't really belong in here.

This doesn't make a difference right now, apart for changing the
presedence of this error. But it will make a difference  for the next
patch, where we no longer call this method from the non-sub tex-image
getters.

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