Skip to content

Commit

Permalink
Examples: Android+OpenGL: Using ALooper_pollOnce() instead of ALooper…
Browse files Browse the repository at this point in the history
…_pollAll(). (#8013)
  • Loading branch information
ocornut committed Nov 4, 2024
1 parent 71c77c0 commit f77d228
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion docs/CHANGELOG.txt
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ Other changes:
actual include. (#8095, #7967, #3190) [@sev-]
- Backends: SDL2, SDL3: SDL_EVENT_MOUSE_WHEEL event doesn't require dividing
by 100.0f on Emscripten target. (#4019, #6096, #1463)
- Examples: Added SDL3+Vulkan example. (#8084, #8085)
- Examples: SDL3+Vulkan: Added example. (#8084, #8085)
- Examples: Android+OpenGL: Using ALooper_pollOnce() instead of ALooper_pollAll()
which has been deprecated. (#8013) [@feather179]

-----------------------------------------------------------------------
VERSION 1.91.4 (Released 2024-10-18)
Expand Down
2 changes: 1 addition & 1 deletion examples/example_android_opengl3/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ void android_main(struct android_app* app)
struct android_poll_source* out_data;

// Poll all events. If the app is not visible, this loop blocks until g_Initialized == true.
while (ALooper_pollAll(g_Initialized ? 0 : -1, nullptr, &out_events, (void**)&out_data) >= 0)
while (ALooper_pollOnce(g_Initialized ? 0 : -1, nullptr, &out_events, (void**)&out_data) >= 0)
{
// Process one event
if (out_data != nullptr)
Expand Down

0 comments on commit f77d228

Please sign in to comment.