From 1f3a851cfcfe79725e2d99c71d12d21b6349a225 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 22 Nov 2006 20:39:44 +0000 Subject: [PATCH] From Farshid Lashkari, Added missing initialization of the _scaleByTextureRectangleSize variable in two of its constructors. --- include/osg/TexMat | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/osg/TexMat b/include/osg/TexMat index d4a29792f..d9eb7c57a 100644 --- a/include/osg/TexMat +++ b/include/osg/TexMat @@ -27,12 +27,13 @@ class OSG_EXPORT TexMat : public StateAttribute TexMat(); - TexMat(const Matrix& matrix):_matrix(matrix) {} + TexMat(const Matrix& matrix):_matrix(matrix),_scaleByTextureRectangleSize(false) {} /** Copy constructor using CopyOp to manage deep vs shallow copy. */ TexMat(const TexMat& texmat,const CopyOp& copyop=CopyOp::SHALLOW_COPY): StateAttribute(texmat,copyop), - _matrix(texmat._matrix) {} + _matrix(texmat._matrix), + _scaleByTextureRectangleSize(texmat._scaleByTextureRectangleSize) {} META_StateAttribute(osg, TexMat, TEXMAT);