Fixed up macosx

This commit is contained in:
Elias Naur 2004-03-05 22:57:51 +00:00
parent 4d5f244f23
commit de2edcf84f
2 changed files with 3 additions and 13 deletions

View File

@ -902,7 +902,7 @@ void extgl_InitWGL(JNIEnv *env)
/*-----------------------------------------------------*/
#ifdef _AGL
bool extgl_InitAGL(JNIEnv *env, jobject ext_set)
bool extgl_InitAGL(JNIEnv *env)
{
aglChoosePixelFormat = (aglChoosePixelFormatPROC)extgl_GetProcAddress("aglChoosePixelFormat");
aglDestroyPixelFormat = (aglDestroyPixelFormatPROC)extgl_GetProcAddress("aglDestroyPixelFormat");

View File

@ -108,12 +108,10 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_Window_nCreate(JNIEnv *env, jclass
throwException(env, "Could not load gl library");
return;
}
/*
WARNING COMMENTED OUT, to make compile, needed?, fix?
if (!extgl_InitAGL(env, ext_set)) {
if (!extgl_InitAGL(env)) {
throwException(env, "Could not load agl symbols");
return;
}*/
}
if (!current_fullscreen) {
if (!switchToNearestMode(env, width, height, bpp, 60)) {
destroyMode(env, clazz);
@ -127,14 +125,6 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_Window_nCreate(JNIEnv *env, jclass
extgl_Close();
return;
}
/*
WARNING COMMENTED OUT, to make compile, needed?, fix?
if (!extgl_Initialize(env, ext_set)) {
destroy(env, clazz);
throwException(env, "Could not load gl function pointers");
return;
}
*/
FlushEventQueue(GetMainEventQueue());
}