diff options
author | Chris Robinson <[email protected]> | 2023-03-04 23:31:01 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2023-03-04 23:31:01 -0800 |
commit | ef45eccd6cbf736aa4a364b92e6089568091ed2e (patch) | |
tree | a82f0ba2d744b90c0ae671e55886c0bf6d3e223c | |
parent | fde74453a62a1ce4b5efaac0ec1835b9f5731e25 (diff) |
Remove a couple unused variables
-rw-r--r-- | examples/alstreamcb.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/alstreamcb.cpp b/examples/alstreamcb.cpp index f8eaf510..994a9c97 100644 --- a/examples/alstreamcb.cpp +++ b/examples/alstreamcb.cpp @@ -83,10 +83,10 @@ struct StreamPlayer { StreamPlayer() { alGenBuffers(1, &mBuffer); - if(ALenum err{alGetError()}) + if(alGetError() != AL_NO_ERROR) throw std::runtime_error{"alGenBuffers failed"}; alGenSources(1, &mSource); - if(ALenum err{alGetError()}) + if(alGetError() != AL_NO_ERROR) { alDeleteBuffers(1, &mBuffer); throw std::runtime_error{"alGenSources failed"}; |