Skip to content

Commit

Permalink
cube: Change ALooper_pollOnce to ALooper_pollAll
Browse files Browse the repository at this point in the history
ALooper_pollAll is removed in NDK r27, switch to using ALooper_pollOnce
instead. Since it was already being called in a loop, all we have to do
is change the function name.

Fixes #1015
  • Loading branch information
mikes-lunarg committed Aug 3, 2024
1 parent 3d70a8c commit 2762cce
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/tools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,6 @@ jobs:
python-version: '3.8'
- uses: lukka/get-cmake@latest
- name: Configure
env:
# workaround for https://github.com/KhronosGroup/Vulkan-Tools/issues/1015
ANDROID_NDK_ROOT: /usr/local/lib/android/sdk/ndk/25.2.9519653
run: |
cmake -S . -B build/ --toolchain $ANDROID_NDK_ROOT/build/cmake/android.toolchain.cmake \
-D ANDROID_PLATFORM=23 \
Expand Down
2 changes: 1 addition & 1 deletion cube/cube.c
Original file line number Diff line number Diff line change
Expand Up @@ -4505,7 +4505,7 @@ void android_main(struct android_app *app) {
while (1) {
int events;
struct android_poll_source *source;
while (ALooper_pollAll(active ? 0 : -1, NULL, &events, (void **)&source) >= 0) {
while (ALooper_pollOnce(active ? 0 : -1, NULL, &events, (void **)&source) >= 0) {
if (source) {
source->process(app, source);
}
Expand Down

0 comments on commit 2762cce

Please sign in to comment.