Fixed up macosx
This commit is contained in:
parent
4d5f244f23
commit
de2edcf84f
|
@ -902,7 +902,7 @@ void extgl_InitWGL(JNIEnv *env)
|
||||||
/*-----------------------------------------------------*/
|
/*-----------------------------------------------------*/
|
||||||
#ifdef _AGL
|
#ifdef _AGL
|
||||||
|
|
||||||
bool extgl_InitAGL(JNIEnv *env, jobject ext_set)
|
bool extgl_InitAGL(JNIEnv *env)
|
||||||
{
|
{
|
||||||
aglChoosePixelFormat = (aglChoosePixelFormatPROC)extgl_GetProcAddress("aglChoosePixelFormat");
|
aglChoosePixelFormat = (aglChoosePixelFormatPROC)extgl_GetProcAddress("aglChoosePixelFormat");
|
||||||
aglDestroyPixelFormat = (aglDestroyPixelFormatPROC)extgl_GetProcAddress("aglDestroyPixelFormat");
|
aglDestroyPixelFormat = (aglDestroyPixelFormatPROC)extgl_GetProcAddress("aglDestroyPixelFormat");
|
||||||
|
|
|
@ -108,12 +108,10 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_Window_nCreate(JNIEnv *env, jclass
|
||||||
throwException(env, "Could not load gl library");
|
throwException(env, "Could not load gl library");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
/*
|
if (!extgl_InitAGL(env)) {
|
||||||
WARNING COMMENTED OUT, to make compile, needed?, fix?
|
|
||||||
if (!extgl_InitAGL(env, ext_set)) {
|
|
||||||
throwException(env, "Could not load agl symbols");
|
throwException(env, "Could not load agl symbols");
|
||||||
return;
|
return;
|
||||||
}*/
|
}
|
||||||
if (!current_fullscreen) {
|
if (!current_fullscreen) {
|
||||||
if (!switchToNearestMode(env, width, height, bpp, 60)) {
|
if (!switchToNearestMode(env, width, height, bpp, 60)) {
|
||||||
destroyMode(env, clazz);
|
destroyMode(env, clazz);
|
||||||
|
@ -127,14 +125,6 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_Window_nCreate(JNIEnv *env, jclass
|
||||||
extgl_Close();
|
extgl_Close();
|
||||||
return;
|
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());
|
FlushEventQueue(GetMainEventQueue());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue