| Index: gpu/command_buffer/service/gles2_cmd_decoder.cc
|
| diff --git a/gpu/command_buffer/service/gles2_cmd_decoder.cc b/gpu/command_buffer/service/gles2_cmd_decoder.cc
|
| index a5946fab874cafdcba455ea0d5bcfa4bb081ef31..2ac847cbbf668b99dcb96edd3a8f77ad8b2b347d 100644
|
| --- a/gpu/command_buffer/service/gles2_cmd_decoder.cc
|
| +++ b/gpu/command_buffer/service/gles2_cmd_decoder.cc
|
| @@ -13716,8 +13716,12 @@ bool GLES2DecoderImpl::ValidateCopyTexFormat(
|
| }
|
| if (feature_info_->IsWebGL2OrES3Context()) {
|
| GLint color_encoding = GetColorEncodingFromInternalFormat(read_format);
|
| + bool float_mismatch= feature_info_->ext_color_buffer_float_available() ?
|
| + (GLES2Util::IsIntegerFormat(internal_format) !=
|
| + GLES2Util::IsIntegerFormat(read_format)) :
|
| + GLES2Util::IsFloatFormat(internal_format);
|
| if (color_encoding != GetColorEncodingFromInternalFormat(internal_format) ||
|
| - GLES2Util::IsFloatFormat(internal_format) ||
|
| + float_mismatch ||
|
| (GLES2Util::IsSignedIntegerFormat(internal_format) !=
|
| GLES2Util::IsSignedIntegerFormat(read_format)) ||
|
| (GLES2Util::IsUnsignedIntegerFormat(internal_format) !=
|
|
|