PDA

View Full Version : Texture disappears at edge of v



dooderino
06-24-2016, 09:25 AM
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.

dooderino
06-25-2016, 09:46 AM
OK, found my error. I wasn't re-enabling textures when redrawing the sprites that straddle an edge.