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

Unified Diff: cc/output/shader.cc

Issue 2724183003: cc: Fix vertex opacity shaders (Closed)
Patch Set: Created 3 years, 10 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 | « cc/output/renderer_pixeltest.cc ('k') | cc/test/data/green_alpha_vertex_opacity.png » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/shader.cc
diff --git a/cc/output/shader.cc b/cc/output/shader.cc
index 3bd260f4a3deee18948fe883f19a62e9ef5b164d..f03c6331e53e7e8ac59f41bb093e20ef6c1c8e8d 100644
--- a/cc/output/shader.cc
+++ b/cc/output/shader.cc
@@ -368,7 +368,7 @@ std::string VertexShader::GetShaderString() const {
DCHECK(use_uniform_arrays_);
HDR("uniform float opacity[NUM_QUADS * 4];");
HDR("varying float v_alpha;");
- SRC("v_alpha = opacity[quad_index];");
+ SRC("v_alpha = opacity[vertex_index];");
}
// Add cargo-culted dummy variables for Android.
« no previous file with comments | « cc/output/renderer_pixeltest.cc ('k') | cc/test/data/green_alpha_vertex_opacity.png » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698