I’m hoping to get some help with a problem I’m having with the graphics framework I’m working on. Everything is working fine with one exception. When I move the window it doesn’t appear to update correctly, (resize works fine). What happens is this, I move the window say to the right on the desktop 20 pixels. The application will continue to draw but the left portion of the window will not be redrawn. The portion that isn’t redrawn is the same size as the distance moved (20 pixels). The GL rendering part appears to be working fine, redraws happen etc., but it is almost as if the buffer is being clipped, like maybe windows is confused on where the window is.
More specifics on my app. I’m using the basic WinMain, WndProc type loop. I’ve tried ignoring the WM_SIZE message or handling it. I’ve tried invalidating the window on a move event, all to no avail.
Resize works fine and will correct the problem (syncs up the window). Also clicking on the title bar or moving the mouse across the window buttons on the upper right corner will also fix the problem.
One other thing, I’m trying to create a multithreaded application, so I’m doing all the GL setup/rendering on one thread, UI on another.
I can include snippets of source code if that would help.