alut pre-1.0 doesn't support aletGetError but then again, this function doesn't get called in that case either so just comment it out at build time

This commit is contained in:
ehofman
2009-10-07 07:31:14 +00:00
committed by Tim Moore
parent 5d14b84969
commit 199437e859

View File

@@ -458,6 +458,7 @@ bool SGSoundMgr::testForALCError(string s)
bool SGSoundMgr::testForALUTError(string s)
{
#if defined(ALUT_API_MAJOR_VERSION) && ALUT_API_MAJOR_VERSION >= 1
ALenum error;
error = alutGetError ();
if (error != ALUT_ERROR_NO_ERROR) {
@@ -466,5 +467,6 @@ bool SGSoundMgr::testForALUTError(string s)
<< s);
return true;
}
#endif
return false;
}