| Index: gpu/command_buffer/service/gles2_cmd_decoder_autogen.h
|
| ===================================================================
|
| --- gpu/command_buffer/service/gles2_cmd_decoder_autogen.h (revision 69969)
|
| +++ gpu/command_buffer/service/gles2_cmd_decoder_autogen.h (working copy)
|
| @@ -380,6 +380,10 @@
|
| SetGLError(GL_INVALID_VALUE, "glCopyTexImage2D: height < 0");
|
| return error::kNoError;
|
| }
|
| + if (!validators_->texture_border.IsValid(border)) {
|
| + SetGLError(GL_INVALID_VALUE, "glCopyTexImage2D: border GL_INVALID_VALUE");
|
| + return error::kNoError;
|
| + }
|
| DoCopyTexImage2D(target, level, internalformat, x, y, width, height, border);
|
| return error::kNoError;
|
| }
|
| @@ -721,6 +725,11 @@
|
| GL_INVALID_ENUM, "glFramebufferTexture2D: textarget GL_INVALID_ENUM");
|
| return error::kNoError;
|
| }
|
| + if (!validators_->zero_only.IsValid(level)) {
|
| + SetGLError(
|
| + GL_INVALID_VALUE, "glFramebufferTexture2D: level GL_INVALID_VALUE");
|
| + return error::kNoError;
|
| + }
|
| DoFramebufferTexture2D(target, attachment, textarget, texture, level);
|
| return error::kNoError;
|
| }
|
|
|