Commit 15460e36 by Jeff Gilbert Committed by Commit Bot

In PixelTransfer11, center offset should be 1/size, not 1/(size-1).

Bug: angleproject:3039 Change-Id: Ie97bfb5aa3cfe7cd2c4b1d22b5b4a8d82a5e5170 Reviewed-on: https://chromium-review.googlesource.com/c/1407251Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Commit-Queue: Jamie Madill <jmadill@chromium.org>
parent 55f20f68
......@@ -125,8 +125,8 @@ void PixelTransfer11::setBufferToTextureCopyParams(const gl::Box &destArea,
{
StructZero(parametersOut);
float texelCenterX = 0.5f / static_cast<float>(destSize.width - 1);
float texelCenterY = 0.5f / static_cast<float>(destSize.height - 1);
float texelCenterX = 0.5f / static_cast<float>(destSize.width);
float texelCenterY = 0.5f / static_cast<float>(destSize.height);
unsigned int bytesPerPixel = gl::GetSizedInternalFormatInfo(internalFormat).pixelBytes;
unsigned int alignmentBytes = static_cast<unsigned int>(unpack.alignment);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment