From Art Trevs, "in the current implementation of the FrameBufferObject
there is a bug. The header file do specify something like this: FrameBufferAttachment(Texture3D* target, int zoffset, int level = 0); However in the .cpp file we have: FrameBufferAttachment::FrameBufferAttachment(Texture3D* target, int level, int zoffset) Which means that the meaning of level and zoffset is interchanged. The file with the corrected line is attached. Should go into src/osg/ "
This commit is contained in:
parent
712ca43219
commit
1d18bc7f48
@ -272,7 +272,7 @@ FrameBufferAttachment::FrameBufferAttachment(Texture2D* target, int level)
|
|||||||
_ximpl->textureTarget = target;
|
_ximpl->textureTarget = target;
|
||||||
}
|
}
|
||||||
|
|
||||||
FrameBufferAttachment::FrameBufferAttachment(Texture3D* target, int level, int zoffset)
|
FrameBufferAttachment::FrameBufferAttachment(Texture3D* target, int zoffset, int level)
|
||||||
{
|
{
|
||||||
_ximpl = new Pimpl(Pimpl::TEXTURE3D, level);
|
_ximpl = new Pimpl(Pimpl::TEXTURE3D, level);
|
||||||
_ximpl->textureTarget = target;
|
_ximpl->textureTarget = target;
|
||||||
|
Loading…
Reference in New Issue
Block a user