fixed compiler warning

This commit is contained in:
Elias Naur 2003-07-05 21:58:35 +00:00
parent e8a6ecb69c
commit 55cb0bad92
2 changed files with 5 additions and 2 deletions

View File

@ -199,10 +199,11 @@ JNIEXPORT jobject JNICALL Java_org_lwjgl_openal_ALC_alcCreateContext (JNIEnv *en
* ALCboolean alcMakeContextCurrent(ALCcontext *context);
*/
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((ALCcontext*) contextaddress);
return alcMakeContextCurrent(context);
}
/**

View File

@ -110,6 +110,7 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_openal_eax_CoreEAX_eaxGet (JNIEnv *env, jc
return result;
#else
ThrowException(env, "EAX extensions not supported");
return 0;
#endif
}
@ -128,6 +129,7 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_openal_eax_CoreEAX_eaxSet (JNIEnv *env, jc
return result;
#else
ThrowException(env, "EAX extensions not supported");
return 0;
#endif
}