Index: gpu/command_buffer/service/indexed_buffer_binding_host.h |
diff --git a/gpu/command_buffer/service/indexed_buffer_binding_host.h b/gpu/command_buffer/service/indexed_buffer_binding_host.h |
index 3730069917f2a1ff176c102eef7f1d5281e463b1..1530239a39a75d829085d98ac7ca278059c75bd3 100644 |
--- a/gpu/command_buffer/service/indexed_buffer_binding_host.h |
+++ b/gpu/command_buffer/service/indexed_buffer_binding_host.h |
@@ -22,7 +22,9 @@ class Buffer; |
class GPU_EXPORT IndexedBufferBindingHost : |
public base::RefCounted<IndexedBufferBindingHost> { |
public: |
- // |needs_emulation| is set to true on Desktop GL 4.1 or lower. |
+ // In theory |needs_emulation| needs to be true on Desktop GL 4.1 or lower. |
+ // However, we set it to true everywhere, not to trust drivers to handle |
+ // out-of-bounds buffer access. |
IndexedBufferBindingHost(uint32_t max_bindings, bool needs_emulation); |
// The following two functions do state update and call the underlying GL |