Skip to content

Commit

Permalink
Merge pull request #107 from cntools/fix_for_android_34_beta
Browse files Browse the repository at this point in the history
Fix build for Android 34 / NDK 27 (Beta) and up.
  • Loading branch information
cnlohr authored May 6, 2024
2 parents c78f8b9 + a56d4b6 commit ce81fa8
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 ce81fa8

Please sign in to comment.