Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(209)

Unified Diff: gpu/command_buffer/service/program_manager.cc

Issue 1610613002: command_buffer: Fix setting samplers with bound uniforms (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | gpu/command_buffer/tests/gl_bind_uniform_location_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « no previous file | gpu/command_buffer/tests/gl_bind_uniform_location_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698