From efde7273eecbcbef5024c950520090b4472af735 Mon Sep 17 00:00:00 2001 From: Bo Svensson <90132211+bosvensson1@users.noreply.github.com> Date: Thu, 7 Oct 2021 13:57:01 +0000 Subject: [PATCH] removes invalid glReadBuffer calls --- src/osgUtil/RenderStage.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/osgUtil/RenderStage.cpp b/src/osgUtil/RenderStage.cpp index d8300d2e3..f0d23158f 100644 --- a/src/osgUtil/RenderStage.cpp +++ b/src/osgUtil/RenderStage.cpp @@ -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 }