[Qt-interest] glClear behaving strangely with FBO
Adam Davis
addavis at fosterandpartners.com
Thu Jun 30 19:06:03 CEST 2011
I am using a QGLFrameBufferObject to render off-screen, writing the
buffer to a QImage and saving the image to disk.
Calls to glClear in the QGLWidget from which the FBO's rendering context
is obtained set the appropriate color in the widget's buffer. However,
regardless of what I specify as the clear color for the FBO, it renders
white. I realize this probably a situation where code is needed to
diagnose, in which case I can try to strip out the non-essentials and
post some. In the meantime, if this is a situation someone has
encountered before for which there is a ready solution, I would be glad
for suggestions. Thank you.
Regards,
Adam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110630/35b10cd6/attachment.html
More information about the Qt-interest-old
mailing list