Hi,

Looking att the FrameBufferObjectBase constructor, the _mfDrawBuffers is 
actually initialized as empty (size 0), although it looks as if the 
constructor tries to add a zero element (which would make sense, use the 
window system provided frame buffer to draw to).

Inherited(),
  _sfGLId                   (GLenum(0)),
  _mfColorAttachments       (),
  _mfDrawBuffers            (GLenum(0)), <---
  _sfDepthAttachment        (NULL),
  _sfStencilAttachment      (NULL),
  _sfWidth                  (UInt16(0)),
  _sfHeight                 (UInt16(0)),
  _sfPostProcessOnDeactivate(bool(false))
{ }

The main confusing part here is that _mfColorAttachments is default 
initialized, and _mfDrawbuffers is not, but both ctors give the same 
effect (empty MField).

I'd expect the _mfDrawBuffers element to contain a zero element, but 
that's not what happens. (It's easily fixed by adding a push_back(0) in 
FrameBufferObject's ctor)

(Also, the attachment fields are not copied by the copy ctor of FBOBase, 
but that's maybe as it should be.)

BTW, I really like the Stage/FBO/FBA/TB/RB classes in 2.x. They beat the 
hell out of FBOViewport. :)

Cheers,
/Marcus



------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to