SwapBuffers causes redraw
Posted
by user146780
on Stack Overflow
See other posts from Stack Overflow
or by user146780
Published on 2010-05-16T01:43:56Z
Indexed on
2010/05/16
2:10 UTC
Read the original article
Hit count: 281
I'm making a Win32 application with OpenGL in the main window (not using GLUT). I have my drawing code in WM_PAINT right now when I call swapBuffers it must be invalidating itself because it is constantly rerendering and using lots of cpu resources. How can I make it only render when it honestly receives WM_PAINT like when using GDI?
Thanks
© Stack Overflow or respective owner