Files
OpenSceneGraph/src/osg/TexMat.cpp
Robert Osfield 0d0b33f4b0 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.
2001-10-01 12:06:22 +00:00

21 lines
269 B
C++

#include "osg/GL"
#include "osg/TexMat"
using namespace osg;
TexMat::TexMat()
{
}
TexMat::~TexMat()
{
}
void TexMat::apply(State&) const
{
glMatrixMode( GL_TEXTURE );
glLoadMatrixf( _matrix.ptr() );
glMatrixMode( GL_MODELVIEW ); // fix! GWM Aug 2001
}