Change-Id: Ibd7a099fa0a25dbddb1733b81101abc82ddd3f4c
Reviewed-on: https://swiftshader-review.googlesource.com/14008
Tested-by: Alexis Hétu <sugoi@google.com>
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
if(mState.pixelUnpackBuffer->name)
{
if(mState.pixelUnpackBuffer->isMapped() ||
- (mState.pixelUnpackBuffer->size() < imageSize) ||
+ (mState.pixelUnpackBuffer->size() < static_cast<size_t>(imageSize)) ||
((*data) && (imageSize % static_cast<GLsizei>((ptrdiff_t)(*data)))))
{
return GL_INVALID_OPERATION;