From d708f3ecd8e8063fb2e586ce4faafe748134b60c Mon Sep 17 00:00:00 2001 From: darealshinji Date: Wed, 13 Jun 2018 01:31:51 +0200 Subject: [PATCH] don't be too pedantic on the OpenAL checks --- .travis.yml | 2 +- configure.ac | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index dbf67d501..cafcb895e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -62,7 +62,7 @@ script: export CPPFLAGS="-fprofile-arcs -ftest-coverage"; export LIBS="-lgcov"; ./autogen.sh; - ./configure --enable-debug agi_cv_with_openal=yes || cat config.log; + ./configure --enable-debug || cat config.log; make -j2; make test || travis_terminate 1; coveralls --exclude vendor --exclude src --exclude build --exclude tools --exclude libaegisub/windows > /dev/null; diff --git a/configure.ac b/configure.ac index 491e7ed85..12d70c493 100644 --- a/configure.ac +++ b/configure.ac @@ -339,9 +339,9 @@ AS_IF([test x$with_openal != xno], [ #endif int main(void) { ALCdevice *device = alcOpenDevice(0); - if (!device) return 1; ALCcontext *context = alcCreateContext(device, 0); - if (!context) return 1; + alcDestroyContext(context); + alcCloseDevice(device); return 0; } ]) ])