Problem with background (Loadbitmap)

Hello!
I’m new to OpenGl and right now i have a problem with making background. I managed to add a background to my project (tic tac toe) but it seem to be glitching or keeps on refreshing. :doh: GIF: < https://imgur.com/a/I5HWfZZ >
Any advice to make it still ?
Thanks for considering my request!

It 's hard to tell with so little info. But make sure you’re only calling SwapBuffers once (not twice) between each frame. I could envision that generating a similar artifact. Also, did you allocate a double-buffered window?

Thank you for your reply!
Here is my source code :frowning: i tried disabling both of my SwapBuffers but it’s not working. Also i don’t know what does " allocate a double-buffered window" mean :frowning:

This line of code in your ‘main’ routine allocates a double-buffered window.

glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGB | GLUT_DEPTH);

[QUOTE=Carmine;1291862]This line of code in your ‘main’ routine allocates a double-buffered window.

glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGB | GLUT_DEPTH);

[/QUOTE]

Oh. I had it in my main but it still refeshing

After hours of testing my Source code. I have found the solution!
The reason why my background kept on refreshing because I had 2 <glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);> in display void.
Thank you guy for helping me!