Fixed recursive call bug

This commit is contained in:
Robert Osfield 2018-03-08 10:47:07 +00:00
parent 4e6e0f53be
commit 1020bddb15

View File

@ -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;
}