powervr
09-29-2004, 04:58 AM
Hi guy,
in my codes:
------------
glBeing()
...
elEnd()
glutswapbuffer()
glBeing()
...
elEnd()
glutswapbuffer()
glBeing()
...
elEnd()
glutswapbuffer()
glReadpixel(xxx)
--------------------------
after 3 x glutswapbuffer(), I found that the framebuffer i got via glreadpixel is not the same as shown on the screen
What is the reason?
Should I point to the front buffer or the back buffer?
In fact, I just want to get the content which shown on the current screen.
Thanks.
:)
in my codes:
------------
glBeing()
...
elEnd()
glutswapbuffer()
glBeing()
...
elEnd()
glutswapbuffer()
glBeing()
...
elEnd()
glutswapbuffer()
glReadpixel(xxx)
--------------------------
after 3 x glutswapbuffer(), I found that the framebuffer i got via glreadpixel is not the same as shown on the screen
What is the reason?
Should I point to the front buffer or the back buffer?
In fact, I just want to get the content which shown on the current screen.
Thanks.
:)