[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [qtopenal] src: Fix a minor issue about error handling:
From:       Laszlo Papp <ext-laszlo.papp () nokia ! com>
Date:       2011-11-30 22:41:27
Message-ID: 20111130224127.550CDA60A6 () git ! kde ! org
[Download RAW message or body]

Git commit 299bdbafb6f416549903fb44fcf3d891d968b8b3 by Laszlo Papp.
Committed on 01/12/2011 at 01:34.
Pushed by lpapp into branch 'master'.

Fix a minor issue about error handling: ALC_NO_ERROR -> AL_NO_ERROR

M  +2    -2    src/qalcontext.cpp

http://commits.kde.org/qtopenal/299bdbafb6f416549903fb44fcf3d891d968b8b3

diff --git a/src/qalcontext.cpp b/src/qalcontext.cpp
index 2e39cb0..936e133 100644
--- a/src/qalcontext.cpp
+++ b/src/qalcontext.cpp
@@ -211,7 +211,7 @@ bool
 QALContext::deleteBuffer(ALuint bufferId)
 {
     ALenum error;
-    if ((error = alGetError()) != ALC_NO_ERROR) {
+    if ((error = alGetError()) != AL_NO_ERROR) {
         qWarning() << Q_FUNC_INFO << "Error before trying to delete the buffer:" << alGetString(error);
     };
 
@@ -231,7 +231,7 @@ bool
 QALContext::deleteBuffers()
 {
     ALenum error;
-    if ((error = alGetError()) != ALC_NO_ERROR) {
+    if ((error = alGetError()) != AL_NO_ERROR) {
         qWarning() << Q_FUNC_INFO << "Error before trying to delete the buffers:" << alGetString(error);
     };
 
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic