Index: gpu/command_buffer/service/program_manager.cc |
diff --git a/gpu/command_buffer/service/program_manager.cc b/gpu/command_buffer/service/program_manager.cc |
index f90c39d50962122ba4444eb8838fd4b0b64d9929..716cfbaa5ebf51f255695db216b93c28bfcdb5dd 100644 |
--- a/gpu/command_buffer/service/program_manager.cc |
+++ b/gpu/command_buffer/service/program_manager.cc |
@@ -1410,7 +1410,7 @@ bool Program::SetSamplers( |
} |
size_t location_index = |
GetUniformLocationIndexFromFakeLocation(fake_location); |
- if (location_index >= uniform_infos_.size()) |
+ if (location_index >= uniform_locations_.size()) |
Zhenyao Mo
2016/01/20 18:41:13
Correct me if I am wrong.
uniform_locations_ size
Kimmo Kinnunen
2016/01/21 12:36:32
No, automatically bound uniforms get their client-
|
return false; |
if (!uniform_locations_[location_index].IsActive()) |
Kimmo Kinnunen
2016/01/21 12:36:32
(2): This checks if the uniform has been optimized
|