only enter main loop if initialization is successful
parent
60166e6861
commit
8e7ab3b49b
|
|
@ -514,6 +514,7 @@ int main(){
|
||||||
}
|
}
|
||||||
|
|
||||||
/*~ NOTE: Main loop */
|
/*~ NOTE: Main loop */
|
||||||
|
if (make_current_success2){
|
||||||
int exit_loop = 0;
|
int exit_loop = 0;
|
||||||
for (;!exit_loop;){
|
for (;!exit_loop;){
|
||||||
/* (1) Appendix B: wl_display_dispatch_pending
|
/* (1) Appendix B: wl_display_dispatch_pending
|
||||||
|
|
@ -543,6 +544,7 @@ int main(){
|
||||||
printf("eglSwapBuffers failed\n");
|
printf("eglSwapBuffers failed\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* (1) #Client-classwl__display_1a9150a7e3213a58b469a6966e60a9f108
|
/* (1) #Client-classwl__display_1a9150a7e3213a58b469a6966e60a9f108
|
||||||
** " Close the connection to display "
|
** " Close the connection to display "
|
||||||
|
|
|
||||||
|
|
@ -246,10 +246,8 @@ int main(int argc, char **argv){
|
||||||
}
|
}
|
||||||
|
|
||||||
/*~ NOTE: Main loop */
|
/*~ NOTE: Main loop */
|
||||||
|
if (swap_interval_success){
|
||||||
int exit_loop = 0;
|
int exit_loop = 0;
|
||||||
if (!swap_interval_success){
|
|
||||||
exit_loop = 1;
|
|
||||||
}
|
|
||||||
for (;!exit_loop;){
|
for (;!exit_loop;){
|
||||||
|
|
||||||
/* (1) /event-handling/XPending.html
|
/* (1) /event-handling/XPending.html
|
||||||
|
|
@ -307,6 +305,7 @@ int main(int argc, char **argv){
|
||||||
printf("eglSwapBuffers failed\n");
|
printf("eglSwapBuffers failed\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/*~ NOTE: Shutdown */
|
/*~ NOTE: Shutdown */
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue