From 1020bddb15cc5753704d857ba350df847b5e7a1e Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 8 Mar 2018 10:47:07 +0000 Subject: [PATCH] Fixed recursive call bug --- src/osg/State.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/osg/State.cpp b/src/osg/State.cpp index 521c8881d..2c2b7fabf 100644 --- a/src/osg/State.cpp +++ b/src/osg/State.cpp @@ -442,7 +442,7 @@ void State::glDrawBuffer(GLenum buffer) if (_drawBuffer!=buffer) { #if !defined(OSG_GLES1_AVAILABLE) && !defined(OSG_GLES2_AVAILABLE) && !defined(OSG_GLES3_AVAILABLE) - glDrawBuffer(buffer); + ::glDrawBuffer(buffer); #endif _drawBuffer=buffer; } @@ -453,7 +453,7 @@ void State::glReadBuffer(GLenum buffer) if (_readBuffer!=buffer) { #if !defined(OSG_GLES1_AVAILABLE) && !defined(OSG_GLES2_AVAILABLE) && !defined(OSG_GLES3_AVAILABLE) - glReadBuffer(buffer); + ::glReadBuffer(buffer); #endif _readBuffer=buffer; }