summaryrefslogtreecommitdiffstats
path: root/gpu
diff options
context:
space:
mode:
authorgman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-03 01:33:01 +0000
committergman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-03 01:33:01 +0000
commit313f73ea0b7fd817741ed866770dcbebd9d6a66a (patch)
tree45d060a4c1a5b8eeb9e7ce33354ab389f9ba79af /gpu
parent8498e15dd7ca061c9078efad5da4fb9db64d09ac (diff)
downloadchromium_src-313f73ea0b7fd817741ed866770dcbebd9d6a66a.zip
chromium_src-313f73ea0b7fd817741ed866770dcbebd9d6a66a.tar.gz
chromium_src-313f73ea0b7fd817741ed866770dcbebd9d6a66a.tar.bz2
Limit max texture size to 4096x4096 on intel mac
TEST=none BUG=121528 Review URL: http://codereview.chromium.org/9950072 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@130284 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu')
-rw-r--r--gpu/command_buffer/service/context_group.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/gpu/command_buffer/service/context_group.cc b/gpu/command_buffer/service/context_group.cc
index f3c2de3..8e8815a 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);
}