Texture disappears at edge of v

I’m working on a 2D asteroids game (in Windows) and have added textures to the sprites. They work fine except at the left and top edges of the window. The texture is missing until the sprite moves completely onto the screen. This doesn’t happen at the right or bottom edge. The sprites are polygons and I’m using a gluOrtho2D projection.

OK, found my error. I wasn’t re-enabling textures when redrawing the sprites that straddle an edge.