X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fmodern%2Fmain.c;h=ea1080552e88e2b2fd64e530d7c5adecc43259c4;hb=7ef52b31864696747396945b2ca8892d8796f96c;hp=65b5eed83305c5307ce6ee71e9d025948f856ded;hpb=8b26b033e3709d820996a23008435632fa7922bf;p=retroray diff --git a/src/modern/main.c b/src/modern/main.c index 65b5eed..ea10805 100644 --- a/src/modern/main.c +++ b/src/modern/main.c @@ -22,6 +22,7 @@ along with this program. If not, see . #include "app.h" #include "logger.h" +static void display(void); static void reshape(int x, int y); static void keydown(unsigned char key, int x, int y); static void keyup(unsigned char key, int x, int y); @@ -53,7 +54,7 @@ int main(int argc, char **argv) glutInitDisplayMode(GLUT_RGB | GLUT_DEPTH | GLUT_DOUBLE); glutCreateWindow("RetroRay"); - glutDisplayFunc(app_display); + glutDisplayFunc(display); glutReshapeFunc(reshape); glutKeyboardFunc(keydown); glutKeyboardUpFunc(keyup); @@ -178,6 +179,11 @@ void app_vsync(int vsync) #endif +static void display(void) +{ + app_display(); + app_swap_buffers(); +} static void reshape(int x, int y) {