summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorErik Faye-Lund <[email protected]>2018-11-22 15:17:13 +0100
committerErik Faye-Lund <[email protected]>2018-11-26 12:29:54 +0100
commit38bbb61252aa503571986080afddd98a56bcf2e7 (patch)
treecf95730f7f070fa716bf0f9cba18b040e4768190 /include
parentf1998e15ffccf260552bf559abe1a733a8ce990e (diff)
mesa/main: remove bogus error for zero-sized images
The explanation quotes the spec on the following wording to justify the error: "An INVALID_VALUE error is generated if xoffset + width is greater than the texture’s width, yoffset + height is greater than the texture’s height, or zoffset + depth is greater than the texture’s depth." However, this shouldn't generate an error in the case where *all three* of width, xoffset and the texture's width are zero. In this case, we end up generating an unspecified error. So let's remove this check, and instead make sure that we consider this as an empty texture. So let's not generate an error, there's non mandated in the spec in xoffset/yoffset/zoffset = 0 case. We already avoid doing any work in this case, because of the final, non-error generating check in this function. Fixes: b37b35a5d26 "getteximage: assume texture image is empty for non defined levels" Signed-off-by: Erik Faye-Lund <[email protected]> Reviewed-by: Juan A. Suarez <[email protected]>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions