From 4d6c4a7f1f03fba133864e2fc32434d5bbd0c027 Mon Sep 17 00:00:00 2001 From: Daniel Emminizer Date: Mon, 9 Jul 2018 06:34:41 -0400 Subject: [PATCH] FLT: Fix texture unit typo and code style from PR 568. --- src/osgPlugins/OpenFlight/expGeometryRecords.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osgPlugins/OpenFlight/expGeometryRecords.cpp b/src/osgPlugins/OpenFlight/expGeometryRecords.cpp index 4a65cc0ed..9907d7734 100644 --- a/src/osgPlugins/OpenFlight/expGeometryRecords.cpp +++ b/src/osgPlugins/OpenFlight/expGeometryRecords.cpp @@ -67,7 +67,7 @@ FltExportVisitor::isTextured( int unit, const osg::Geometry& geom ) const bool texOn( ss->getTextureMode( unit, GL_TEXTURE_2D ) & osg::StateAttribute::ON ); #else // In this mode, osg::Texture::getModeUsage() is undefined, so just detect if a texture is present - bool texOn = (ss->getTextureAttribute(0, osg::StateAttribute::TEXTURE) != NULL); + bool texOn( ss->getTextureAttribute( unit, osg::StateAttribute::TEXTURE ) != NULL ); #endif bool hasCoords( geom.getTexCoordArray( unit ) != NULL );