diff --git a/src/java/org/lwjgl/opengl/BaseGL.java b/src/java/org/lwjgl/opengl/BaseGL.java index 46cc459c..e7c80fae 100644 --- a/src/java/org/lwjgl/opengl/BaseGL.java +++ b/src/java/org/lwjgl/opengl/BaseGL.java @@ -169,15 +169,4 @@ public class BaseGL extends Window { * Natively destroy any GL-related stuff */ private native void nDestroyGL(); - - /** - * Make the GL context current to the current thread - */ - public native void makeContextCurrent(); - - /** - * Release the GL context - */ - public native void releaseContext(); - } diff --git a/src/native/common/org_lwjgl_opengl_BaseGL.h b/src/native/common/org_lwjgl_opengl_BaseGL.h index 6febbeee..3afbaa42 100644 --- a/src/native/common/org_lwjgl_opengl_BaseGL.h +++ b/src/native/common/org_lwjgl_opengl_BaseGL.h @@ -32,22 +32,6 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_BaseGL_nCreate JNIEXPORT void JNICALL Java_org_lwjgl_opengl_BaseGL_nDestroyGL (JNIEnv *, jobject); -/* - * Class: org_lwjgl_opengl_BaseGL - * Method: makeContextCurrent - * Signature: ()V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_BaseGL_makeContextCurrent - (JNIEnv *, jobject); - -/* - * Class: org_lwjgl_opengl_BaseGL - * Method: releaseContext - * Signature: ()V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_BaseGL_releaseContext - (JNIEnv *, jobject); - #ifdef __cplusplus } #endif diff --git a/src/native/linux/org_lwjgl_opengl_BaseGL.cpp b/src/native/linux/org_lwjgl_opengl_BaseGL.cpp index 3acad11d..b0785f35 100644 --- a/src/native/linux/org_lwjgl_opengl_BaseGL.cpp +++ b/src/native/linux/org_lwjgl_opengl_BaseGL.cpp @@ -184,25 +184,3 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_BaseGL_swapBuffers(JNIEnv * env, jo { glXSwapBuffers(getCurrentDisplay(), getCurrentWindow()); } - -/* - * Class: org_lwjgl_opengl_BaseGL - * Method: nMakeCurrent - * Signature: ()V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_BaseGL_makeContextCurrent - (JNIEnv * env, jobject obj) -{ - makeCurrent(); -} - -/* - * Class: org_lwjgl_opengl_BaseGL - * Method: nFreeContext - * Signature: ()V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_BaseGL_releaseContext - (JNIEnv *, jobject) -{ - releaseContext(); -} diff --git a/src/native/win32/org_lwjgl_opengl_BaseGL.cpp b/src/native/win32/org_lwjgl_opengl_BaseGL.cpp index d5dd0c98..07a8ee9c 100644 --- a/src/native/win32/org_lwjgl_opengl_BaseGL.cpp +++ b/src/native/win32/org_lwjgl_opengl_BaseGL.cpp @@ -218,25 +218,3 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_BaseGL_swapBuffers { SwapBuffers(wglGetCurrentDC()); } - -/* - * Class: org_lwjgl_opengl_BaseGL - * Method: nMakeCurrent - * Signature: ()V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_BaseGL_makeContextCurrent - (JNIEnv * env, jobject obj) -{ - wglMakeCurrent(hdc, hglrc); -} - -/* - * * Class: org_lwjgl_opengl_BaseGL - * * Method: nFreeContext - * * Signature: ()V - * */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_BaseGL_releaseContext - (JNIEnv *, jobject) -{ - wglMakeCurrent(NULL, NULL); -}