| Index: gpu/command_buffer/client/gles2_implementation_impl_autogen.h
|
| diff --git a/gpu/command_buffer/client/gles2_implementation_impl_autogen.h b/gpu/command_buffer/client/gles2_implementation_impl_autogen.h
|
| index 367fa4bdbe65f84e4334a3e83bc1662fc6f07367..b5a1a7a5c99c9e80b682d35a9d9b1c7b2b61b876 100644
|
| --- a/gpu/command_buffer/client/gles2_implementation_impl_autogen.h
|
| +++ b/gpu/command_buffer/client/gles2_implementation_impl_autogen.h
|
| @@ -714,12 +714,7 @@ void GLES2Implementation::FramebufferTexture2D(GLenum target,
|
| << GLES2Util::GetStringAttachment(attachment) << ", "
|
| << GLES2Util::GetStringTextureTarget(textarget) << ", "
|
| << texture << ", " << level << ")");
|
| - if (level != 0) {
|
| - SetGLError(GL_INVALID_VALUE, "glFramebufferTexture2D",
|
| - "level GL_INVALID_VALUE");
|
| - return;
|
| - }
|
| - helper_->FramebufferTexture2D(target, attachment, textarget, texture);
|
| + helper_->FramebufferTexture2D(target, attachment, textarget, texture, level);
|
| CheckGLError();
|
| }
|
|
|
| @@ -2919,18 +2914,13 @@ void GLES2Implementation::FramebufferTexture2DMultisampleEXT(GLenum target,
|
| << GLES2Util::GetStringAttachment(attachment) << ", "
|
| << GLES2Util::GetStringTextureTarget(textarget) << ", "
|
| << texture << ", " << level << ", " << samples << ")");
|
| - if (level != 0) {
|
| - SetGLError(GL_INVALID_VALUE, "glFramebufferTexture2DMultisampleEXT",
|
| - "level GL_INVALID_VALUE");
|
| - return;
|
| - }
|
| if (samples < 0) {
|
| SetGLError(GL_INVALID_VALUE, "glFramebufferTexture2DMultisampleEXT",
|
| "samples < 0");
|
| return;
|
| }
|
| helper_->FramebufferTexture2DMultisampleEXT(target, attachment, textarget,
|
| - texture, samples);
|
| + texture, level, samples);
|
| CheckGLError();
|
| }
|
|
|
|
|