Commit 57f86257 by Jamie Madill Committed by Commit Bot

Support RGB -> BGRX copies in copySubImage.

This was showing up in the following test for me on OSX: IOSurfaceClientBufferTest.CopySubImageToBGRX8888IOSurface/ES2_Vulkan_SwiftShader Test: angle_end2end_tests on OSX 10.15 Bug: angleproject:5147 Change-Id: I666dc832e8be33cde1617c849990c6092f4e2240 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2462041Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org> Commit-Queue: Jamie Madill <jmadill@chromium.org>
parent 4dae43d8
......@@ -449,6 +449,7 @@ bool ValidateES2CopyTexImageParameters(const Context *context,
colorbufferFormat != GL_RGBA8_OES && colorbufferFormat != GL_RGB32F &&
colorbufferFormat != GL_RGBA32F && colorbufferFormat != GL_BGRA8_EXT &&
colorbufferFormat != GL_BGR5_A1_ANGLEX &&
colorbufferFormat != GL_BGRX8_ANGLEX &&
!Valid3to4ComponentFloatColorBufferFormat(context, colorbufferFormat))
{
context->validationError(GL_INVALID_OPERATION, kInvalidFormat);
......
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