only enter main loop if initialization is successful

main
Allen Webster 2026-02-25 16:44:08 -08:00
parent 60166e6861
commit 8e7ab3b49b
2 changed files with 85 additions and 84 deletions

View File

@ -514,6 +514,7 @@ int main(){
}
/*~ NOTE: Main loop */
if (make_current_success2){
int exit_loop = 0;
for (;!exit_loop;){
/* (1) Appendix B: wl_display_dispatch_pending
@ -543,6 +544,7 @@ int main(){
printf("eglSwapBuffers failed\n");
}
}
}
/* (1) #Client-classwl__display_1a9150a7e3213a58b469a6966e60a9f108
** " Close the connection to display "

View File

@ -246,10 +246,8 @@ int main(int argc, char **argv){
}
/*~ NOTE: Main loop */
if (swap_interval_success){
int exit_loop = 0;
if (!swap_interval_success){
exit_loop = 1;
}
for (;!exit_loop;){
/* (1) /event-handling/XPending.html
@ -307,6 +305,7 @@ int main(int argc, char **argv){
printf("eglSwapBuffers failed\n");
}
}
}
/*~ NOTE: Shutdown */