Merge pull request #679 from mp3butcher/patch-18

setup camera Read/Draw Buffer
This commit is contained in:
OpenSceneGraph git repository 2018-12-20 08:46:12 +00:00 committed by GitHub
commit 7a601753e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -357,6 +357,8 @@ void ParallelSplitShadowMap::init()
{
// create the camera
pssmShadowSplitTexture._camera = new osg::Camera;
pssmShadowSplitTexture._camera->setReadBuffer(GL_BACK);
pssmShadowSplitTexture._camera->setDrawBuffer(GL_BACK);
pssmShadowSplitTexture._camera->setCullCallback(new CameraCullCallback(this));