From Jose Delport, added support for MRT via glDrawBuffers

This commit is contained in:
Robert Osfield
2008-04-02 17:08:40 +00:00
parent 0ab29e1502
commit db8cb2a644
2 changed files with 45 additions and 15 deletions

View File

@@ -226,6 +226,8 @@ class OSGUTIL_EXPORT RenderStage : public RenderBin
GLenum _drawBuffer;
GLenum _readBuffer;
// Buffers passed to glDrawBuffers when using multiple render targets.
std::vector<GLenum> _drawBuffers;
GLbitfield _clearMask;
osg::ref_ptr<osg::ColorMask> _colorMask;
osg::Vec4 _clearColor;