retain backbuffer after flip

BlitzMax Forums/OpenGL Module/retain backbuffer after flip

Warner(Posted 2009) [#1]
I'm trying to achieve that the backbuffer is retained after Flip().
After searching various subjects, I came up with this:

It does show the backbuffer content, except that it gets distorted by 1 pixel vertical, and 1 pixel horizontal. It doesn't make any sense to me.
I was wondering if this happens only on my system?



ImaginaryHuman(Posted 2009) [#2]
Maybe a float accuracy issue? Try adding or subtracting 1 from the quad corner coordinates.


Warner(Posted 2009) [#3]
Yes, a rounding issue would seem a logical explaination. When I try substracting 1, the smur goes towards the center. Well, I'll experiment some more, thanks.


Warner(Posted 2009) [#4]
I tested it on another computer today, but then the code works normally.
This makes it more difficult to work around this. Has anybody tried this so far?


jsp(Posted 2009) [#5]
Works fine here on an Intel Card.


Warner(Posted 2009) [#6]
Hmm .. my onboard videocard must be buggy then.
Thanks for trying!


Scienthsine(Posted 2009) [#7]
Try playing with/forcing different opengl texture wrap/clamp parameters. http://msdn.microsoft.com/en-us/library/dd368639%28VS.85%29.aspx


Warner(Posted 2009) [#8]
I did play around with those, but not much yet. I'll look at them more carefully.