From 0d0b33f4b025a45c5a46512a9b78ef94d863f6a2 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 1 Oct 2001 12:06:22 +0000 Subject: [PATCH] Integrated a bug fix to osg::TexMat from Geoff Michel which adds a glMatrixMode( GL_MODELVIEW ); after the setting of the texture matrix. Previously the texture matrix mode could run into normal model view matrix operations which were assuming the defaul of GL_MODELVIEW. --- src/osg/TexMat.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/osg/TexMat.cpp b/src/osg/TexMat.cpp index 15728d41a..67400b439 100644 --- a/src/osg/TexMat.cpp +++ b/src/osg/TexMat.cpp @@ -16,4 +16,5 @@ void TexMat::apply(State&) const { glMatrixMode( GL_TEXTURE ); glLoadMatrixf( _matrix.ptr() ); + glMatrixMode( GL_MODELVIEW ); // fix! GWM Aug 2001 }