X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=tests%2Falcinfo.cxx;h=e567d73cd0b4ed129e5c46926677c21b5d68f1d0;hb=14c918a7ef32d5da04f40080cb642e6f1396b982;hp=2f569390d11d22f1d935fa212cf3f93bf22ecc69;hpb=295d5eaf8c46ca7721a98ea46ed8b960763d16f7;p=flightgear.git diff --git a/tests/alcinfo.cxx b/tests/alcinfo.cxx index 2f569390d..e567d73cd 100644 --- a/tests/alcinfo.cxx +++ b/tests/alcinfo.cxx @@ -145,36 +145,13 @@ int main(int argc, char **argv) if ((error = alGetError()) != AL_NO_ERROR) printf("Error #%x: %s\n", error, alGetString(error)); else if (!s) - printf("Quering AL_VERSION returned NULL pointer!\n"); + printf("Querying AL_VERSION returned NULL pointer!\n"); else printf("OpenAL version string: %s\n", s); s = (char *)alGetString(AL_EXTENSIONS); printExtensions ("OpenAL extensions", ' ', s); - testForALCError(device); - -/* alut testing mechanism */ - context = alcGetCurrentContext(); - if (context == NULL) - { - printf("Error: no current context\n"); - } - else - { - if (alGetError () != AL_NO_ERROR) - { - printf("Alert: AL error on entry\n"); - } - else - { - if (alcGetError (alcGetContextsDevice (context)) != ALC_NO_ERROR) - { - printf("Alert: ALC error on entry\n"); - } - } - } -/* end of alut test */ - + testForALCError(device); if (alcMakeContextCurrent(NULL) == 0) printf("alcMakeContextCurrent failed.\n");