Re: [osg-users] glGetTexImage failed on Windows

2010-10-28 Thread weiliang dai
Hi, forget about my posting. i just find out the problem is with the allocation of the buffer. i accidentally cleared the buffer (which resize the buffer to size 0). just ignore my posting. ... Thank you! Cheers, weiliang -- Read this topic online here: http://forum.openscene

Re: [osg-users] glGetTexImage failed on Windows

2010-10-28 Thread weiliang dai
Hi, I inherited some code to read back texture data. This works fine on Linux platform but seg fault on Windows. Following is the list of the code segments, .. // create and configure the texture that we're going // to use as target for render-to-texture (depth) m_texture = new osg: