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

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

Issue 9950072: Limit max texture size to 4096x4096 on intel mac (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/context_group.cc
diff --git a/gpu/command_buffer/service/context_group.cc b/gpu/command_buffer/service/context_group.cc
index f3c2de3384230bdf23e69d68de54a5a333dc7610..8e8815ab3171b2806790736c0eb0f5d58000c63c 100644
--- a/gpu/command_buffer/service/context_group.cc
+++ b/gpu/command_buffer/service/context_group.cc
@@ -109,6 +109,8 @@ bool ContextGroup::Initialize(const DisallowedFeatures& disallowed_features,
std::string lc_str(::StringToLowerASCII(std::string(vendor_str)));
bool intel_on_mac = strstr(lc_str.c_str(), "intel");
if (intel_on_mac) {
+ max_texture_size = std::min(
+ static_cast<GLint>(4096), max_texture_size);
max_cube_map_texture_size = std::min(
static_cast<GLint>(512), max_cube_map_texture_size);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698