Commit 44c2156e by Jamie Madill Committed by Commit Bot

D3D11: Fix CopyTexture for ES3 types.

We were passing a sized format and indexing a table which expects unsized. BUG=angleproject:1384 Change-Id: I69eb8e3d66cfb2178e3a7a4ddb93a54f47bbc938 Reviewed-on: https://chromium-review.googlesource.com/347249Reviewed-by: 's avatarCorentin Wallez <cwallez@chromium.org> Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org> Commit-Queue: Jamie Madill <jmadill@chromium.org>
parent d787e50b
...@@ -2993,8 +2993,10 @@ gl::Error Renderer11::copyImageInternal(const gl::Framebuffer *framebuffer, ...@@ -2993,8 +2993,10 @@ gl::Error Renderer11::copyImageInternal(const gl::Framebuffer *framebuffer,
gl::Extents destSize(destRenderTarget->getWidth(), destRenderTarget->getHeight(), 1); gl::Extents destSize(destRenderTarget->getWidth(), destRenderTarget->getHeight(), 1);
// Use nearest filtering because source and destination are the same size for the direct copy. // Use nearest filtering because source and destination are the same size for the direct copy.
// Convert to the unsized format before calling copyTexture.
const gl::InternalFormat &internalFormat = gl::GetInternalFormatInfo(destFormat);
ANGLE_TRY(mBlit->copyTexture(source, sourceArea, sourceSize, dest, destArea, destSize, nullptr, ANGLE_TRY(mBlit->copyTexture(source, sourceArea, sourceSize, dest, destArea, destSize, nullptr,
destFormat, GL_NEAREST, false)); internalFormat.format, GL_NEAREST, false));
return gl::NoError(); return gl::NoError();
} }
......
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