summaryrefslogtreecommitdiffstats
path: root/opengl
diff options
context:
space:
mode:
authorRomain Guy <romainguy@google.com>2012-07-30 14:47:51 -0700
committerRomain Guy <romainguy@google.com>2012-07-31 18:55:16 -0700
commit42e1e0d482d774cf18a55773e434f02edb9e4462 (patch)
tree33ac1bca20382f2e8ccbf176c89b3476f2ae5c9b /opengl
parent8ab8fbbf46d8779f53301e7f706f97608eed7117 (diff)
downloadframeworks_base-42e1e0d482d774cf18a55773e434f02edb9e4462.zip
frameworks_base-42e1e0d482d774cf18a55773e434f02edb9e4462.tar.gz
frameworks_base-42e1e0d482d774cf18a55773e434f02edb9e4462.tar.bz2
Improve gradients
Avoid using textures for common gradients (two stops from 0.0 to 1.0) Change-Id: Iff55d21b126c8cfc4cfb701669f2339c8f6b131a
Diffstat (limited to 'opengl')
-rw-r--r--opengl/java/android/opengl/Matrix.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/opengl/java/android/opengl/Matrix.java b/opengl/java/android/opengl/Matrix.java
index 3f07337..72128ac 100644
--- a/opengl/java/android/opengl/Matrix.java
+++ b/opengl/java/android/opengl/Matrix.java
@@ -337,8 +337,8 @@ public class Matrix {
final float y = 2.0f * (near * r_height);
final float A = (right + left) * r_width;
final float B = (top + bottom) * r_height;
- final float C = -(far + near) * r_depth;
- final float D = -2.0f * (far * near * r_depth);
+ final float C = (far + near) * r_depth;
+ final float D = 2.0f * (far * near * r_depth);
m[offset + 0] = x;
m[offset + 5] = y;
m[offset + 8] = A;