From c992cb6e820349939c648d34c9a901928566dce5 Mon Sep 17 00:00:00 2001 From: scrawl Date: Sun, 19 Mar 2017 19:14:54 +0100 Subject: [PATCH] Fix texture not being applied on rendering the composite map (Fixes #3791) --- components/terrain/compositemaprenderer.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/components/terrain/compositemaprenderer.cpp b/components/terrain/compositemaprenderer.cpp index 5300aac85..653ac53ec 100644 --- a/components/terrain/compositemaprenderer.cpp +++ b/components/terrain/compositemaprenderer.cpp @@ -88,6 +88,10 @@ void CompositeMapRenderer::compile(CompositeMap &compositeMap, osg::RenderInfo & return; } + // inform State that Texture attribute has changed due to compiling of FBO texture + // should OSG be doing this on its own? + state.haveAppliedTextureAttribute(state.getActiveTextureUnit(), osg::StateAttribute::TEXTURE); + for (unsigned int i=compositeMap.mCompiled; i