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

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

Issue 947653002: Fix MSAA on windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update comment for v Created 5 years, 10 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 | « no previous file | gpu/command_buffer/service/feature_info_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/feature_info.cc
diff --git a/gpu/command_buffer/service/feature_info.cc b/gpu/command_buffer/service/feature_info.cc
index 803b1210b8e55c96764869810a5ddc7a5e9130a3..79cc361e9360653ffbea5c841a89e53cbcb20cb0 100644
--- a/gpu/command_buffer/service/feature_info.cc
+++ b/gpu/command_buffer/service/feature_info.cc
@@ -471,7 +471,9 @@ void FeatureInfo::InitializeFeatures() {
enable_texture_format_bgra8888 = true;
}
- if (extensions.Contains("GL_EXT_bgra")) {
+ // Only desktop GL extension GL_EXT_bgra or ANGLE guarantee that we can
+ // allocate a renderbuffer with this format.
+ if (extensions.Contains("GL_EXT_bgra") || gl_version_info_->is_angle) {
enable_render_buffer_bgra = true;
}
« no previous file with comments | « no previous file | gpu/command_buffer/service/feature_info_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698