don't be too pedantic on the OpenAL checks

This commit is contained in:
darealshinji 2018-06-13 01:31:51 +02:00 committed by Thomas Goyne
parent 547b17fc22
commit 7c43c757ce
1 changed files with 2 additions and 2 deletions

View File

@ -342,9 +342,9 @@ AS_IF([test x$with_openal != xno], [
#endif #endif
int main(void) { int main(void) {
ALCdevice *device = alcOpenDevice(0); ALCdevice *device = alcOpenDevice(0);
if (!device) return 1;
ALCcontext *context = alcCreateContext(device, 0); ALCcontext *context = alcCreateContext(device, 0);
if (!context) return 1; alcDestroyContext(context);
alcCloseDevice(device);
return 0; return 0;
} ]) } ])
]) ])