PDA

View Full Version : OGL|ES glFrustum typo in spec



Eric K
02-10-2004, 09:25 AM
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

Eric K
02-10-2004, 10:06 AM
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)

core
02-10-2004, 04:04 PM
Yes, you're right ;)

clyde7
02-11-2004, 08:45 PM
Thanks a lot! Will fix it in the next release.