From 31dd0f8b57b220a352958b5cd33d87678f5de7e2 Mon Sep 17 00:00:00 2001 From: Brian Matzon Date: Tue, 23 Mar 2004 21:23:58 +0000 Subject: [PATCH] added nMakeCurrent --- src/native/macosx/org_lwjgl_opengl_Window.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/native/macosx/org_lwjgl_opengl_Window.cpp b/src/native/macosx/org_lwjgl_opengl_Window.cpp index 76c3f342..6b8eff60 100644 --- a/src/native/macosx/org_lwjgl_opengl_Window.cpp +++ b/src/native/macosx/org_lwjgl_opengl_Window.cpp @@ -101,6 +101,16 @@ JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_Window_nIsCloseRequested(JNIEnv return JNI_FALSE; } +/* + * Class: org_lwjgl_Window + * Method: nMakeCurrent + * Signature: ()V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_Window_nMakeCurrent + (JNIEnv *env, jclass clazz) { + CGLSetCurrentContext(context); +} + JNIEXPORT void JNICALL Java_org_lwjgl_opengl_Window_nCreate(JNIEnv *env, jclass clazz, jstring title, jint x, jint y, jint width, jint height, jboolean fullscreen, jint bpp, jint alpha, jint depth, jint stencil, jint samples) { vsync_enabled = false; current_fullscreen = fullscreen == JNI_TRUE;