X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Ffg_main.c;h=9acfc31c9390df39e5475a8d9dfc585481b4546d;hb=bac05204a224d9cabe6b7d52c00d2e0601825cb4;hp=f6a94a6c6b8cf4824bfc4b26d7f339a523ac6549;hpb=1897e7e46186c5aa11700a72cb3331c1aabdb360;p=freeglut diff --git a/src/fg_main.c b/src/fg_main.c index f6a94a6..9acfc31 100644 --- a/src/fg_main.c +++ b/src/fg_main.c @@ -74,13 +74,7 @@ static void fghReshapeWindow ( SFG_Window *window, int width, int height ) fgPlatformReshapeWindow ( window, width, height ); - if( FETCH_WCB( *window, Reshape ) ) - INVOKE_WCB( *window, Reshape, ( width, height ) ); - else - { - fgSetWindow( window ); - glViewport( 0, 0, width, height ); - } + INVOKE_WCB( *window, Reshape, ( width, height ) ); /* * Force a window redraw. In Windows at least this is only a partial