OGL|ES glFrustum typo in spec

FYI, the OpenGL|ES reference manual contains a typo in glFrustum.

According to the ES spec the transformation matrix elements M(1,1) and M(2,2) are:
2 / (right - left)
2 / (top - bottom)

They should be:
(2 * near) / (right - left)
(2 * near) / (top - bottom)

Link : http://www.khronos.org/opengles/documentation/html/glFrustum.html

Hmm, now I see what appears to be another typo in the same glFrustum function:

Matrix elements M(1,3) and M(2,3) are:

  • (right + left)/(right - left)
  • (top + bottom)/(top - bottom)

They should be:

  • (right + left)/(right - left)
  • (top + bottom)/(top - bottom)

Yes, you’re right :wink:

Thanks a lot! Will fix it in the next release.

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.