small medium large xlarge

Errata for OpenGL ES 2 for Android

 

The latest version of the book is P1.0, released almost 3 years ago. If you've bought a PDF of the book and would like to upgrade it to this version (for free), visit your home page.

By default this page displays the errata for the latest version of the book. If you have a previous version, select it here:

If you've found a new error, please submit it.

  • Typo
  • Tech. error
  • Suggestion
  • Maybe next edition
  • Not a problem
  • Reported in: P1.0 (10-Jul-13)
#52162
PDF page: 1
- You don't speak about the default coordinate system (0,0,0) in center of the screen. - You don't speak about the default scale of coordinate (1,...more...
  • Reported in: P1.0 (12-Sep-13)
#52628
Paper page: 41
In the subchapter "Uploading and Compiling the Shader Source Code" the code-block "glCompileShader(shaderObjectId);" isn't marked as the other ones. C...more...
  • Reported in: P1.0 (25-Aug-13)
#52450
Paper page: 47
In the validateProgram() method, call to glGetProgramInfoLog() should only be made iff InfoLogLength > 0 as illustrated below: Log.v(TAG,...more...
  • Reported in: P1.0 (02-Nov-14)
#77760
PDF page: 56
GLES20.GL_COMPILE_STATUS => GL_COMPILE_STATUS, since static import of android.opengl.GLES20.* is done. Correctly used in the call to glGetShaderiv() ...more...
  • Reported in: P1.0 (02-Nov-14)
#77759
PDF page: 59
GLES20.GL_LINK_STATUS => GL_LINK_STATUS, since a static import is done of android.opengl.GLES20.*. It is also used the correct way in the cal to glGe...more...
  • Reported in: P1.0 (01-Oct-13)
#53001
Paper page: 107
On page 104 the projection matrix is described. Comparing with the implementation of the various elements on page 106 and 107 you will find that the ...more...
  • Reported in: P1.0 (10-Apr-16)
#80206
Paper page: 110
At he point where you get to compile, you compile and I didn't get Figure 32, that was because you don't say in the book that you have to switch to th...more...
  • Reported in: P1.0 (30-Sep-14)
#77512
PDF page: 112
in page 112,the rotation matarix for round the x,the 7th element in figure is -sin(a),but in example code, i am check the code from android.opengl.Mat...more...
  • Reported in: P1.0 (10-Mar-14)
#76526
Paper page: 148
Possibly modify Figure 43 to use the xz axes. The figure currently shows a unit circle in the xy plane, but in the description that follows (and in...more...
  • Reported in: P1.0 (30-Sep-13)
#52999
PDF page: 211
Paper page: 202
The text says that we have time in nanoseconds, so we need to divide by TRILLION (10 ^ 12) to get seconds. That's clearly a mistake, as we should divi...more...
  • Reported in: P1.0 (10-Sep-13)
#52615
PDF page: 211
In the last sentence of the paragraph: "To do this, we can take the difference between the current system time and globalStartTime, and since Syste...more...
  • Reported in: P1.0 (07-Jan-14)
#76268
PDF page: 221
The code where you unbind the texture after we are finished, the book currently has it as glBindTexture(GL_TEXTURE_2D, 0); Because we are genera...more...
  • Reported in: P1.0 (18-Jun-14)
#76872
Paper page: 238
final float yPosition = (float)Color.red(pixels[(row*height) + col]) / (float)255; it's working with the same width and height, but it's not wor...more...
  • Reported in: P1.0 (07-Jan-14)
#76267
PDF page: 259
Hi there! If you take a look at the code for Heightmap.java, when you are trying to clamp the co-ordinates to ensure that you don't access any pixe...more...