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

Unified Diff: gpu/command_buffer/common/gles2_cmd_utils.cc

Issue 18492005: Add GL_EXT_multisampled_render_to_texture support to command buffer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: moved ahead to TOT Created 7 years, 5 months 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
« no previous file with comments | « gpu/command_buffer/common/gles2_cmd_ids_autogen.h ('k') | gpu/command_buffer/service/context_group.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/common/gles2_cmd_utils.cc
diff --git a/gpu/command_buffer/common/gles2_cmd_utils.cc b/gpu/command_buffer/common/gles2_cmd_utils.cc
index ef0f3ead7f6fb6ced61759439a2595b11b6dea6d..25eafcd8a267fdf55826ac44a5120e77822578b0 100644
--- a/gpu/command_buffer/common/gles2_cmd_utils.cc
+++ b/gpu/command_buffer/common/gles2_cmd_utils.cc
@@ -228,8 +228,12 @@ int GLES2Util::GLGetNumValuesReturned(int id) const {
return 1;
case GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE:
return 1;
+ // -- glGetFramebufferAttachmentParameteriv with
+ // GL_EXT_multisampled_render_to_texture
+ case GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_SAMPLES_EXT:
+ return 1;
- // -- glGetFramebufferAttachmentParameteriv
+ // -- glGetProgramiv
case GL_DELETE_STATUS:
return 1;
case GL_LINK_STATUS:
@@ -269,6 +273,10 @@ int GLES2Util::GLGetNumValuesReturned(int id) const {
return 1;
case GL_RENDERBUFFER_STENCIL_SIZE:
return 1;
+ // -- glGetRenderbufferAttachmentParameteriv with
+ // GL_EXT_multisampled_render_to_texture
+ case GL_RENDERBUFFER_SAMPLES_EXT:
+ return 1;
// -- glGetShaderiv
case GL_SHADER_TYPE:
« no previous file with comments | « gpu/command_buffer/common/gles2_cmd_ids_autogen.h ('k') | gpu/command_buffer/service/context_group.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698