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 0fa872654930d2b35d8a4e8bae9a4e018efdcb54..14c2f5df2cde13ceb7e2fc697921b2a8772f924e 100644 |
--- a/gpu/command_buffer/client/gles2_implementation_impl_autogen.h |
+++ b/gpu/command_buffer/client/gles2_implementation_impl_autogen.h |
@@ -715,12 +715,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(); |
} |
@@ -2949,18 +2944,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(); |
} |