Merge pull request #1094 from bosvensson1/patch-1

removes invalid glReadBuffer calls
This commit is contained in:
Robert Osfield 2021-10-08 10:48:09 +01:00 committed by GitHub
commit 88951bea4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -519,9 +519,7 @@ void RenderStage::runCameraSetUp(osg::RenderInfo& renderInfo)
{
#if !defined(OSG_GLES1_AVAILABLE) && !defined(OSG_GLES2_AVAILABLE) && !defined(OSG_GLES3_AVAILABLE)
setDrawBuffer( GL_NONE, true );
setReadBuffer( GL_NONE, true );
state.glDrawBuffer( GL_NONE );
state.glReadBuffer( GL_NONE );
#endif
}