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

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: code rebase 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 d46935887601f97216e14a4e23a33d488a70642c..ce1d8b72dbe868a20107e9dc724449e69127949d 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);
}
}
« no previous file with comments | « gpu/command_buffer/build_gles2_cmd_buffer.py ('k') | gpu/command_buffer/client/gles2_implementation_impl_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698