Skip to content

Commit

Permalink
Fix build for Android 34 / NDK 27 (Beta) and up.
Browse files Browse the repository at this point in the history
  • Loading branch information
cnlohr committed May 6, 2024
1 parent c78f8b9 commit a56d4b6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions CNFGEGLDriver.c
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ int CNFGSetup( const char * WindowName, int w, int h )
while( !OGLESStarted )
{
struct android_poll_source* source;
if (ALooper_pollAll( 0, 0, &events, (void**)&source) >= 0)
if (ALooper_pollOnce( 0, 0, &events, (void**)&source) >= 0)
{
if (source != NULL) source->process(gapp, source);
}
Expand Down Expand Up @@ -433,7 +433,7 @@ int CNFGHandleInput()
#ifdef ANDROID
int events;
struct android_poll_source* source;
while( ALooper_pollAll( 0, 0, &events, (void**)&source) >= 0 )
while( ALooper_pollOnce( 0, 0, &events, (void**)&source) >= 0 )
{
if (source != NULL)
{
Expand Down Expand Up @@ -473,8 +473,8 @@ void handle_cmd(struct android_app* app, int32_t cmd)
{
case APP_CMD_DESTROY:
//This gets called initially after back.
if( !HandleDestroy() )
ANativeActivity_finish( gapp->activity );
HandleDestroy();
ANativeActivity_finish( gapp->activity );
break;
case APP_CMD_INIT_WINDOW:
//When returning from a back button suspension, this isn't called.
Expand Down

0 comments on commit a56d4b6

Please sign in to comment.