From 1d18bc7f485f6cc06953f739ba014fe191d5347d Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 4 Mar 2008 15:29:47 +0000 Subject: [PATCH] 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/ " --- src/osg/FrameBufferObject.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osg/FrameBufferObject.cpp b/src/osg/FrameBufferObject.cpp index ee0dd1f18..59460be8e 100644 --- a/src/osg/FrameBufferObject.cpp +++ b/src/osg/FrameBufferObject.cpp @@ -272,7 +272,7 @@ FrameBufferAttachment::FrameBufferAttachment(Texture2D* target, int level) _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->textureTarget = target;