Added ReleaseContext to win32

This commit is contained in:
Elias Naur 2002-12-11 10:14:08 +00:00
parent 98398e4a7a
commit ff770dee4d
1 changed files with 12 additions and 0 deletions

View File

@ -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