X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Ffreeglut_window.c;h=61df8fd679fc46a2cca0f34c6333d5d6614ab231;hb=a7c34bdfaa680a83bf796eac2f2da20b92f4c139;hp=34d3b90912aaed2ef685203f4a97f06d3f26267a;hpb=2e5dc871b7c1df472978af9811d0e97b6684707c;p=freeglut diff --git a/src/freeglut_window.c b/src/freeglut_window.c index 34d3b90..61df8fd 100644 --- a/src/freeglut_window.c +++ b/src/freeglut_window.c @@ -798,6 +798,18 @@ void FGAPIENTRY glutReshapeWindow( int width, int height ) XResizeWindow( fgDisplay.Display, fgStructure.Window->Window.Handle, width, height ); XFlush( fgDisplay.Display ); /* XXX Shouldn't need this */ + /* + * XXX REALLY shouldn't be done. GLUT docs state that this + * XXX isn't even processed immediately, but rather waits + * XXX for return to the mainloop. "This allows multiple + * XXX glutReshapeWindow, glutPositionWindow, and glutFullScreen + * XXX requests to the same window to be coalesced." (This is + * XXX having some deleterious effect on a sample program of mine.) + * XXX Not only does GLUT not flush at this point, GLUT doesn't even + * XXX *do* the reshape at this point! We should probably rip this + * XXX out and do what GLUT promises. It would be more efficient, and + * XXX might be more compatible. + */ #elif TARGET_HOST_WIN32