Index: content/common/gpu/gpu_command_buffer_stub.cc |
diff --git a/content/common/gpu/gpu_command_buffer_stub.cc b/content/common/gpu/gpu_command_buffer_stub.cc |
index 902d87bb87500a1f559410fdf02b44230c3cfd2d..0bb4a46e4f80d97494cbf8daf1986e3b103af421 100644 |
--- a/content/common/gpu/gpu_command_buffer_stub.cc |
+++ b/content/common/gpu/gpu_command_buffer_stub.cc |
@@ -560,7 +560,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()); |
} |