Added ReleaseContext to win32
This commit is contained in:
parent
98398e4a7a
commit
ff770dee4d
|
@ -162,6 +162,18 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_BaseGL_swapBuffers
|
|||
wglSwapLayerBuffers(hdc, WGL_SWAP_MAIN_PLANE);
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_BaseGL
|
||||
* Method: nFreeContext
|
||||
* Signature: ()V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_BaseGL_nReleaseContext
|
||||
(JNIEnv *env, jobject obj)
|
||||
{
|
||||
wglMakeCurrent(hdc, NULL);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_BaseGL
|
||||
* Method: nMakeCurrent
|
||||
|
|
Loading…
Reference in New Issue