diff --git a/src/java/org/lwjgl/openal/ALC.java b/src/java/org/lwjgl/openal/ALC.java index cc69a5ad..74df2e58 100644 --- a/src/java/org/lwjgl/openal/ALC.java +++ b/src/java/org/lwjgl/openal/ALC.java @@ -260,15 +260,6 @@ public class ALC { */ public native boolean isExtensionPresent(ALCdevice device, String extName); - /** - * Retrieves the address of a specified context extension function. - * - * @param device device to query - * @param extName name of extension to find - * @return address of function - */ - public native int getProcAddress(ALCdevice device, String extName); - /** * retrieves the enum value for a specified enumeration name. * diff --git a/src/java/org/lwjgl/openal/CoreAL.java b/src/java/org/lwjgl/openal/CoreAL.java index 5fec11fe..b7c67d5b 100644 --- a/src/java/org/lwjgl/openal/CoreAL.java +++ b/src/java/org/lwjgl/openal/CoreAL.java @@ -164,14 +164,6 @@ public class CoreAL extends BaseAL implements BaseALConstants { */ public native boolean isExtensionPresent(String fname); - /** - * Returns the address of an OpenAL extension function. - * - * @param fname String containing the function name - * @return int specifying offset of extension - */ - public native int getProcAddress(String fname); - /** * Returns the enumeration value of an OpenAL enum described by a string. * diff --git a/src/native/common/org_lwjgl_openal_ALC.h b/src/native/common/org_lwjgl_openal_ALC.h index 2c447d1c..07caa40d 100644 --- a/src/native/common/org_lwjgl_openal_ALC.h +++ b/src/native/common/org_lwjgl_openal_ALC.h @@ -127,14 +127,6 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_openal_ALC_getError JNIEXPORT jboolean JNICALL Java_org_lwjgl_openal_ALC_isExtensionPresent (JNIEnv *, jobject, jobject, jstring); -/* - * Class: org_lwjgl_openal_ALC - * Method: getProcAddress - * Signature: (Lorg/lwjgl/openal/ALCdevice;Ljava/lang/String;)I - */ -JNIEXPORT jint JNICALL Java_org_lwjgl_openal_ALC_getProcAddress - (JNIEnv *, jobject, jobject, jstring); - /* * Class: org_lwjgl_openal_ALC * Method: getEnumValue diff --git a/src/native/common/org_lwjgl_openal_CoreAL.h b/src/native/common/org_lwjgl_openal_CoreAL.h index 208282a8..4472e99f 100644 --- a/src/native/common/org_lwjgl_openal_CoreAL.h +++ b/src/native/common/org_lwjgl_openal_CoreAL.h @@ -159,14 +159,6 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_openal_CoreAL_getError JNIEXPORT jboolean JNICALL Java_org_lwjgl_openal_CoreAL_isExtensionPresent (JNIEnv *, jobject, jstring); -/* - * Class: org_lwjgl_openal_CoreAL - * Method: getProcAddress - * Signature: (Ljava/lang/String;)I - */ -JNIEXPORT jint JNICALL Java_org_lwjgl_openal_CoreAL_getProcAddress - (JNIEnv *, jobject, jstring); - /* * Class: org_lwjgl_openal_CoreAL * Method: getEnumValue diff --git a/src/native/win32/org_lwjgl_openal_ALC.cpp b/src/native/win32/org_lwjgl_openal_ALC.cpp index 6727d940..73db83c2 100644 --- a/src/native/win32/org_lwjgl_openal_ALC.cpp +++ b/src/native/win32/org_lwjgl_openal_ALC.cpp @@ -357,29 +357,6 @@ JNIEXPORT jboolean JNICALL Java_org_lwjgl_openal_ALC_isExtensionPresent (JNIEnv return result; } -/** - * This function retrieves the address of a specified context extension function. - * - * C Specification: - * ALvoid * alcGetProcAddress(ALCdevice *device, ALubyte *funcName); - */ -JNIEXPORT jint JNICALL Java_org_lwjgl_openal_ALC_getProcAddress (JNIEnv *env, jobject obj, jobject device, jstring funcName) { - /* get device address */ - jclass device_class = env->GetObjectClass(device); - jfieldID device_field = env->GetFieldID(device_class, "device", "I"); - jint deviceaddress = env->GetIntField(device, device_field); - - /* get extension */ - ALubyte* functionname = (ALubyte*) (env->GetStringUTFChars(funcName, 0)); - - jint result = (jint) alcGetProcAddress((ALCdevice*) deviceaddress, functionname); - - env->ReleaseStringUTFChars((jstring)functionname, 0); - - CHECK_ALC_ERROR - return result; -} - /** * This function retrieves the enum value for a specified enumeration name. * diff --git a/src/native/win32/org_lwjgl_openal_CoreAL.cpp b/src/native/win32/org_lwjgl_openal_CoreAL.cpp index 898f2a58..7ec3af04 100644 --- a/src/native/win32/org_lwjgl_openal_CoreAL.cpp +++ b/src/native/win32/org_lwjgl_openal_CoreAL.cpp @@ -230,21 +230,6 @@ JNIEXPORT jboolean JNICALL Java_org_lwjgl_openal_CoreAL_isExtensionPresent (JNIE return result; } -/** - * This function returns the address of an OpenAL extension function. - * - * C Specification: - * ALvoid * alGetProcAddress(ALubyte *funcName); - */ -JNIEXPORT jint JNICALL Java_org_lwjgl_openal_CoreAL_getProcAddress (JNIEnv *env, jobject obj, jstring fname) { - ALubyte* functionname = (ALubyte*) (env->GetStringUTFChars(fname, 0)); - jint result = (jint) alGetProcAddress(functionname); - env->ReleaseStringUTFChars((jstring)functionname, 0); - - CHECK_AL_ERROR - return result; -} - /** * This function returns the enumeration value of an OpenAL enum described by a string. *