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

Unified Diff: gpu/command_buffer/service/gles2_cmd_decoder.cc

Issue 1759433002: Update GL_IMPLEMENTATION_COLOR_READ_FORMAT for BGRA (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: feedback Created 4 years, 9 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/service/feature_info_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/gles2_cmd_decoder.cc
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder.cc b/gpu/command_buffer/service/gles2_cmd_decoder.cc
index a3ad42338965a9e9f7e5c85fb6e133d83079545d..b0442e124dfb08cc5c14824c9e725b969e75e099 100644
--- a/gpu/command_buffer/service/gles2_cmd_decoder.cc
+++ b/gpu/command_buffer/service/gles2_cmd_decoder.cc
@@ -5114,7 +5114,9 @@ bool GLES2DecoderImpl::GetHelper(
return true;
}
*params = GLES2Util::GetGLReadPixelsImplementationFormat(
- GetBoundReadFrameBufferInternalFormat());
+ GetBoundReadFrameBufferInternalFormat(),
+ GetBoundReadFrameBufferTextureType(),
+ feature_info_->feature_flags().ext_read_format_bgra);
no sievers 2016/03/08 00:26:28 Don't we strictly speaking also have to check whet
no sievers 2016/03/08 00:28:44 And also note that checking the internal format is
piman 2016/03/08 00:48:07 On desktop GL, the format/type is orthogonal to th
}
return true;
case GL_IMPLEMENTATION_COLOR_READ_TYPE:
« no previous file with comments | « gpu/command_buffer/service/feature_info_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698