diff --git a/components/terrain/chunkmanager.cpp b/components/terrain/chunkmanager.cpp index 64708cdf3..ab660dfb9 100644 --- a/components/terrain/chunkmanager.cpp +++ b/components/terrain/chunkmanager.cpp @@ -94,7 +94,7 @@ osg::ref_ptr ChunkManager::createCompositeMapRTT(osg::ref_ptrsetClearColor(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;