aboutsummaryrefslogtreecommitdiffstats
path: root/al/extension.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2023-05-14 19:39:25 -0700
committerChris Robinson <[email protected]>2023-05-14 19:39:25 -0700
commit5d89ea32c2bb6d5a137cb345bec616b0d6708789 (patch)
tree6e914a89d45d2cacce34c265e03d9ab3b02024ef /al/extension.cpp
parent5ab9ce58808a6c92bbb92c8f58d7694cb86e5414 (diff)
Don't check for a null context in direct functions
Diffstat (limited to 'al/extension.cpp')
-rw-r--r--al/extension.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/al/extension.cpp b/al/extension.cpp
index 077e3324..edd30f88 100644
--- a/al/extension.cpp
+++ b/al/extension.cpp
@@ -37,9 +37,6 @@
AL_API DECL_FUNC1(ALboolean, alIsExtensionPresent, const ALchar*)
FORCE_ALIGN ALboolean AL_APIENTRY alIsExtensionPresentDirect(ALCcontext *context, const ALchar *extName) noexcept
{
- if(!context) UNLIKELY
- return AL_FALSE;
-
if(!extName) UNLIKELY
{
context->setError(AL_INVALID_VALUE, "NULL pointer");