PDA

View Full Version : [SOLVED] PyOpenGL: Flickering?



Zeotronic
August 27th, 2008, 04:16 PM
Python/PyGame/PyOpenGL: recently I've been trying to learn PyGame and PyOpenGL... PyGame seems to be pretty straightforward to me, I've known how to use SDL, and it doesn't seem to be far from it. I once 'knew' how to use OpenGL but I've since forgotten. Anyways, I'm trying to render something quite simple with PyOpenGL... but my window (its contents anyways) flicker... I figure I've forgotten something, or messed something up with my code, which is included with this post (don't worry, its only 47 lines). Could somebody tell me what I've done wrong?

Answer:
I had to double buffer... now you know.