Removed makeContexCurrent and releaseContext
This commit is contained in:
parent
2d3d8585b6
commit
b705ea51d0
|
@ -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();
|
||||
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue