This patch is from Jerome Gardou. Tests will come when all the matrix stack functions are implemented.<br><br>David<br>