I have Sprites in the Size of 64x64. They enter the screen from the right.
Their initial position is:
screen_x+size+20
So they don’t spawn in front of the player.
When they enter the screen on the right, I get a texture flickering. I have made a screenshot to explain things:
http://img838.imageshack.us/img838/2503/samplej.png
The red line from top to bottom shows where the Flickering is. It is on the right side of this line. The red quad on the sprite shows which part of the texture is flickering. I hope that describes my issue well enough.
The sprites are png texture with transparency. I do an alpha test inside a shader to render them.
if ( col.a >= 0.1f )
discard
The Background consists of 2 Layers which are scrolled along their x-texture-coords inside another shader.
The textures are generated either with GL_CLAMP_TO_EDGE or GL_REPEAT, depending on the usage of the texture. Currently, only the backgroun images are generated with GL_REPEAT.
All sprites use different z-values, in 0.1f steps to avoid z-fighting.
Orthographic view has a z-near of -1.0f and a z-far of 1.0f.
I hope that covers all informations. If you need more let me know please. Thanks.