Cleaned up the applying of the glDrawBuffers()
This commit is contained in:
parent
ffc8e54cdc
commit
2b13166c8d
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user