Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(945)

Unified Diff: gpu/command_buffer/client/gles2_cmd_helper_autogen.h

Issue 1236053003: texture mipmap level is not zero-only in ES 3 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update framebufferTexture2DMultisamplerEXT Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: gpu/command_buffer/client/gles2_cmd_helper_autogen.h
diff --git a/gpu/command_buffer/client/gles2_cmd_helper_autogen.h b/gpu/command_buffer/client/gles2_cmd_helper_autogen.h
index 601266dac55a3a440d63709c81dc1e9c42651fa5..3396feea85e127ba0bdacdd261e93b721d81d597 100644
--- a/gpu/command_buffer/client/gles2_cmd_helper_autogen.h
+++ b/gpu/command_buffer/client/gles2_cmd_helper_autogen.h
@@ -669,11 +669,12 @@ void FramebufferRenderbuffer(GLenum target,
void FramebufferTexture2D(GLenum target,
GLenum attachment,
GLenum textarget,
- GLuint texture) {
+ GLuint texture,
+ GLint level) {
gles2::cmds::FramebufferTexture2D* c =
GetCmdSpace<gles2::cmds::FramebufferTexture2D>();
if (c) {
- c->Init(target, attachment, textarget, texture);
+ c->Init(target, attachment, textarget, texture, level);
}
}
@@ -2201,11 +2202,12 @@ void FramebufferTexture2DMultisampleEXT(GLenum target,
GLenum attachment,
GLenum textarget,
GLuint texture,
+ GLint level,
GLsizei samples) {
gles2::cmds::FramebufferTexture2DMultisampleEXT* c =
GetCmdSpace<gles2::cmds::FramebufferTexture2DMultisampleEXT>();
if (c) {
- c->Init(target, attachment, textarget, texture, samples);
+ c->Init(target, attachment, textarget, texture, level, samples);
}
}

Powered by Google App Engine
This is Rietveld 408576698