fixed compiler warning
This commit is contained in:
parent
e8a6ecb69c
commit
55cb0bad92
|
@ -199,10 +199,11 @@ JNIEXPORT jobject JNICALL Java_org_lwjgl_openal_ALC_alcCreateContext (JNIEnv *en
|
||||||
* ALCboolean alcMakeContextCurrent(ALCcontext *context);
|
* ALCboolean alcMakeContextCurrent(ALCcontext *context);
|
||||||
*/
|
*/
|
||||||
JNIEXPORT jboolean JNICALL Java_org_lwjgl_openal_ALC_alcMakeContextCurrent (JNIEnv *env, jclass clazz, jint contextaddress) {
|
JNIEXPORT jboolean JNICALL Java_org_lwjgl_openal_ALC_alcMakeContextCurrent (JNIEnv *env, jclass clazz, jint contextaddress) {
|
||||||
if(contextaddress == NULL) {
|
ALCcontext* context = (ALCcontext*) contextaddress;
|
||||||
|
if(context == NULL) {
|
||||||
return alcMakeContextCurrent(NULL);
|
return alcMakeContextCurrent(NULL);
|
||||||
}
|
}
|
||||||
return alcMakeContextCurrent((ALCcontext*) contextaddress);
|
return alcMakeContextCurrent(context);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -110,6 +110,7 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_openal_eax_CoreEAX_eaxGet (JNIEnv *env, jc
|
||||||
return result;
|
return result;
|
||||||
#else
|
#else
|
||||||
ThrowException(env, "EAX extensions not supported");
|
ThrowException(env, "EAX extensions not supported");
|
||||||
|
return 0;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -128,6 +129,7 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_openal_eax_CoreEAX_eaxSet (JNIEnv *env, jc
|
||||||
return result;
|
return result;
|
||||||
#else
|
#else
|
||||||
ThrowException(env, "EAX extensions not supported");
|
ThrowException(env, "EAX extensions not supported");
|
||||||
|
return 0;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue