1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-16 18:59:57 +00:00

Change the renderOrder of composite maps to ensure they are updated before water reflections or other cameras that may be using it.

This commit is contained in:
scrawl 2017-03-07 16:55:05 +01:00
parent b1d4bb5708
commit 7e4450da55

View file

@ -94,7 +94,7 @@ osg::ref_ptr<osg::Group> ChunkManager::createCompositeMapRTT(osg::ref_ptr<osg::T
camera->setClearColor(osg::Vec4(0.f, 0.f, 0.f, 1.f));
camera->setClearMask(GL_COLOR_BUFFER_BIT);
camera->setViewport(0, 0, mCompositeMapSize, mCompositeMapSize);
camera->setRenderOrder(osg::Camera::PRE_RENDER);
camera->setRenderOrder(osg::Camera::PRE_RENDER, -1);
camera->setImplicitBufferAttachmentMask(osg::DisplaySettings::IMPLICIT_COLOR_BUFFER_ATTACHMENT); // no need for a depth buffer
return camera;