Cleaned up the applying of the glDrawBuffers()

This commit is contained in:
Robert Osfield 2018-02-23 09:55:00 +00:00
parent ffc8e54cdc
commit 2b13166c8d

View File

@ -517,9 +517,9 @@ void RenderStage::runCameraSetUp(osg::RenderInfo& renderInfo)
// and before call to glCheckFramebufferStatus // and before call to glCheckFramebufferStatus
if ( !colorAttached ) if ( !colorAttached )
{ {
setDrawBuffer( GL_NONE, true );
setReadBuffer( GL_NONE, true );
#if !defined(OSG_GLES1_AVAILABLE) && !defined(OSG_GLES2_AVAILABLE) && !defined(OSG_GLES3_AVAILABLE) #if !defined(OSG_GLES1_AVAILABLE) && !defined(OSG_GLES2_AVAILABLE) && !defined(OSG_GLES3_AVAILABLE)
setDrawBuffer( GL_NONE, false );
setReadBuffer( GL_NONE, false );
glDrawBuffer( GL_NONE ); glDrawBuffer( GL_NONE );
glReadBuffer( GL_NONE ); glReadBuffer( GL_NONE );
#endif #endif