summaryrefslogtreecommitdiff
path: root/chromium/content/common/gpu/gpu_command_buffer_stub.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/content/common/gpu/gpu_command_buffer_stub.cc')
-rw-r--r--chromium/content/common/gpu/gpu_command_buffer_stub.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/chromium/content/common/gpu/gpu_command_buffer_stub.cc b/chromium/content/common/gpu/gpu_command_buffer_stub.cc
index 9033d7c5317..ea83554c3e5 100644
--- a/chromium/content/common/gpu/gpu_command_buffer_stub.cc
+++ b/chromium/content/common/gpu/gpu_command_buffer_stub.cc
@@ -582,7 +582,8 @@ void GpuCommandBufferStub::OnInitialize(
if (!context->GetTotalGpuMemory(&total_gpu_memory_))
total_gpu_memory_ = 0;
- if (!context_group_->has_program_cache()) {
+ if (!context_group_->has_program_cache() &&
+ !context_group_->feature_info()->workarounds().disable_program_cache) {
context_group_->set_program_cache(
channel_->gpu_channel_manager()->program_cache());
}