Visual artifacts when resizing window

John Ingles 1 Reputation point
2022-08-21T18:15:53.49+00:00

I've made a basic window to display an opengl context. When I resize the window I get this

233281-image.png

How should I fix this?
I've set the window style as
window_class.style = CS_HREDRAW | CS_VREDRAW | CS_OWNDC

Windows development | Windows API - Win32
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. John Ingles 1 Reputation point
    2022-08-21T19:10:46.673+00:00

    I solved this by putting opengl calls in the window procedure loop.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.