| Index: gpu/command_buffer/service/gles2_cmd_decoder_autogen.h
|
| diff --git a/gpu/command_buffer/service/gles2_cmd_decoder_autogen.h b/gpu/command_buffer/service/gles2_cmd_decoder_autogen.h
|
| index 6ea12d8830df2c42d79de506f6884e89181cd3d0..c5245b131d1f4d9e323fe3fb32c7a1870276dab1 100644
|
| --- a/gpu/command_buffer/service/gles2_cmd_decoder_autogen.h
|
| +++ b/gpu/command_buffer/service/gles2_cmd_decoder_autogen.h
|
| @@ -3028,12 +3028,20 @@ error::Error GLES2DecoderImpl::HandleCopyTextureCHROMIUM(
|
| GLenum dest_id = static_cast<GLenum>(c.dest_id);
|
| GLint level = static_cast<GLint>(c.level);
|
| GLint internalformat = static_cast<GLint>(c.internalformat);
|
| + GLint dest_type = static_cast<GLint>(c.dest_type);
|
| if (!validators_->texture_internal_format.IsValid(internalformat)) {
|
| LOCAL_SET_GL_ERROR(
|
| GL_INVALID_VALUE, "glCopyTextureCHROMIUM", "internalformat GL_INVALID_VALUE"); // NOLINT
|
| return error::kNoError;
|
| }
|
| - DoCopyTextureCHROMIUM(target, source_id, dest_id, level, internalformat);
|
| + if (!validators_->pixel_type.IsValid(dest_type)) {
|
| + LOCAL_SET_GL_ERROR(
|
| + GL_INVALID_VALUE, "glCopyTextureCHROMIUM",
|
| + "dest_type GL_INVALID_VALUE");
|
| + return error::kNoError;
|
| + }
|
| + DoCopyTextureCHROMIUM(target, source_id, dest_id, level, internalformat,
|
| + dest_type);
|
| return error::kNoError;
|
| }
|
|
|
|
|