re:Error rendering world

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

re:Error rendering world

Oliver Bye
Hi I also had this problem, and am posting my hack.
It's only useful for those people who's drivers don't include the GL_ARB_transpose_matrix extension.

Since these functions have equivalents that take matrices in column major form I just switch to those load and multiply functions. Interestingly I looked in the version history and these were used originally.

There seem to be a few layers where this could be done to fault in this bahviour if the extension didn't exist.

'From Croquet1.0beta of 11 April 2006 [latest update: #2] on 24 September 2006 at 9:22:34 am'!

!OpenGL methodsFor: 'GL_ARB_transpose_matrix' stamp: 'oib 9/24/2006 09:20'!
glLoadTransposeMatrixf: m
"Hack to support Dell Latitude D610 Intel Graphics"
        ^self glLoadMatrixf: m transposed.! !

!OpenGL methodsFor: 'GL_ARB_transpose_matrix' stamp: 'oib 9/24/2006 09:22'!
glMultTransposeMatrixf: m
"Hack to support Dell Latitude D610 Intel graphics"
        ^self glMultMatrixf: m transposed.! !