Trail problem

Started by Jakibah, February 03, 2016, 15:01:41

Previous topic - Next topic

Jakibah

I have A test project and I am trying to make a test texture move.
But when It moves it leaves a trail how can I solve this???"this is my code :http://pastebin.com/Q9S9vMPh.
And this is the trail that I want to remove:http://imgur.com/ZedrEis

kappa

You've got to clear your screen after each frame has been drawn by calling glClear, otherwise the previous contents will remain there and you will just draw over it (causing the trail effect). Example here.

Jakibah