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.
21 lines
269 B
C++
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
|
|
}
|