1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-03-03 17:09:40 +00:00

Fix texture not being applied on rendering the composite map (Fixes #3791)

This commit is contained in:
scrawl 2017-03-19 19:14:54 +01:00
parent 4a1406c638
commit c992cb6e82

View file

@ -88,6 +88,10 @@ void CompositeMapRenderer::compile(CompositeMap &compositeMap, osg::RenderInfo &
return; 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<compositeMap.mDrawables.size(); ++i) for (unsigned int i=compositeMap.mCompiled; i<compositeMap.mDrawables.size(); ++i)
{ {
osg::Drawable* drw = compositeMap.mDrawables[i]; osg::Drawable* drw = compositeMap.mDrawables[i];