summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorJoe Fernandez <joefernandez@google.com>2013-04-03 13:52:55 -0700
committerJoe Fernandez <joefernandez@google.com>2013-04-03 13:52:55 -0700
commit44b69be2180a3812bda37a8cb1d266bd29f53010 (patch)
treec8070cfb47bca20e4aa2270ed16e66f826dce0ff /docs
parent555c82cd43ef8d11bcf54f023864619869c06411 (diff)
downloadframeworks_base-44b69be2180a3812bda37a8cb1d266bd29f53010.zip
frameworks_base-44b69be2180a3812bda37a8cb1d266bd29f53010.tar.gz
frameworks_base-44b69be2180a3812bda37a8cb1d266bd29f53010.tar.bz2
docs: OpenGL Dev Guide, fix bug: 6104328
Change-Id: I934bc2741586982f72238b7e11fb5accf38a97af
Diffstat (limited to 'docs')
-rw-r--r--docs/html/guide/topics/graphics/opengl.jd9
1 files changed, 5 insertions, 4 deletions
diff --git a/docs/html/guide/topics/graphics/opengl.jd b/docs/html/guide/topics/graphics/opengl.jd
index 6114a4a..12f0b90 100644
--- a/docs/html/guide/topics/graphics/opengl.jd
+++ b/docs/html/guide/topics/graphics/opengl.jd
@@ -138,7 +138,7 @@ calling OpenGL APIs using the following classes:</p>
<li>{@link android.opengl.GLES10}</li>
<li>{@link android.opengl.GLES10Ext}</li>
<li>{@link android.opengl.GLES11}</li>
- <li>{@link android.opengl.GLES10Ext}</li>
+ <li>{@link android.opengl.GLES11Ext}</li>
</ul>
</li>
<li>{@link javax.microedition.khronos.opengles} - This package provides the standard
@@ -289,13 +289,14 @@ matrices to the coordinates of objects that use this shader.
private final String vertexShaderCode =
// This matrix member variable provides a hook to manipulate
- // the coordinates of objects that use this vertex shader
+ // the coordinates of objects that use this vertex shader.
"uniform mat4 uMVPMatrix; \n" +
"attribute vec4 vPosition; \n" +
"void main(){ \n" +
-
- // the matrix must be included as part of gl_Position
+ // The matrix must be included as part of gl_Position
+ // Note that the uMVPMatrix factor *must be first* in order
+ // for the matrix multiplication product to be correct.
" gl_Position = uMVPMatrix * vPosition; \n" +
"} \n";