Commit c98f7529 authored by dcastagna's avatar dcastagna Committed by Commit bot

Allow RED internal format for CopyTextureCHROMIUM.

In crrev.com/1434453008 we changed the internal format for images
from R8 to RED but we forgot to change glCopyTextureCHROMIUM internal
format validation.

This breaks video to WebGL on GL Core Profile since APPLE_ycbcr_422 is
not avaiable, we fall back to three R8 planes, and we then fail to validate
RED as internal format.

BUG=587158
CQ_INCLUDE_TRYBOTS=tryserver.chromium.win:win_optional_gpu_tests_rel

Review URL: https://codereview.chromium.org/1703153002

Cr-Commit-Position: refs/heads/master@{#376026}
parent b9c00426
...@@ -13158,7 +13158,7 @@ bool GLES2DecoderImpl::ValidateCopyTextureCHROMIUMInternalFormats( ...@@ -13158,7 +13158,7 @@ bool GLES2DecoderImpl::ValidateCopyTextureCHROMIUMInternalFormats(
dest_internal_format == GL_RGBA || dest_internal_format == GL_RGBA ||
dest_internal_format == GL_BGRA_EXT; dest_internal_format == GL_BGRA_EXT;
bool valid_source_format = bool valid_source_format =
source_internal_format == GL_R8 || source_internal_format == GL_ALPHA || source_internal_format == GL_RED || source_internal_format == GL_ALPHA ||
source_internal_format == GL_RGB || source_internal_format == GL_RGBA || source_internal_format == GL_RGB || source_internal_format == GL_RGBA ||
source_internal_format == GL_LUMINANCE || source_internal_format == GL_LUMINANCE ||
source_internal_format == GL_LUMINANCE_ALPHA || source_internal_format == GL_LUMINANCE_ALPHA ||
......
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