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

Unified Diff: cc/output/shader.cc

Issue 2724563003: cc: Fix vertex opacity shaders (Closed)
Patch Set: Limit to GLRenderer 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 7b46db25b395346b0755857700fd572cc53bd41e..dc88969a67d8030db20ad697fa48a486105e8757 100644
--- a/cc/output/shader.cc
+++ b/cc/output/shader.cc
@@ -373,7 +373,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