Index: talk/app/webrtc/java/android/org/webrtc/GlRectDrawer.java |
diff --git a/talk/app/webrtc/java/android/org/webrtc/GlRectDrawer.java b/talk/app/webrtc/java/android/org/webrtc/GlRectDrawer.java |
index 6b3032121f6e873af13b744754dc01580e184f69..2cb8af754d324ddb71667c640a5cdfd9fb629c52 100644 |
--- a/talk/app/webrtc/java/android/org/webrtc/GlRectDrawer.java |
+++ b/talk/app/webrtc/java/android/org/webrtc/GlRectDrawer.java |
@@ -99,6 +99,8 @@ public class GlRectDrawer { |
+ " gl_FragColor = texture2D(oes_tex, interp_tc);\n" |
+ "}\n"; |
+ // Vertex coordinates in Normalized Device Coordinates, i.e. (-1, -1) is bottom-left and (1, 1) is |
+ // top-right. |
private static final FloatBuffer FULL_RECTANGLE_BUF = |
GlUtil.createFloatBuffer(new float[] { |
-1.0f, -1.0f, // Bottom left. |
@@ -107,6 +109,7 @@ public class GlRectDrawer { |
1.0f, 1.0f, // Top right. |
}); |
+ // Texture coordinates - (0, 0) is bottom-left and (1, 1) is top-right. |
private static final FloatBuffer FULL_RECTANGLE_TEX_BUF = |
GlUtil.createFloatBuffer(new float[] { |
0.0f, 0.0f, // Bottom left. |