diff --git a/platform_build/linux_ant/build_es.xml b/platform_build/linux_ant/build_es.xml index 8bb4908c..8c1c919a 100644 --- a/platform_build/linux_ant/build_es.xml +++ b/platform_build/linux_ant/build_es.xml @@ -4,7 +4,8 @@ - + + @@ -21,9 +22,6 @@ - - - @@ -39,8 +37,8 @@ - - + + @@ -126,4 +124,4 @@ - + \ No newline at end of file diff --git a/src/native/common/opengles/org_lwjgl_opengles_CallbackUtil.c b/src/native/common/opengles/org_lwjgl_opengles_CallbackUtil.c index 514483ee..bec06733 100644 --- a/src/native/common/opengles/org_lwjgl_opengles_CallbackUtil.c +++ b/src/native/common/opengles/org_lwjgl_opengles_CallbackUtil.c @@ -53,7 +53,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CallbackUtil_deleteGlobalRef(JNIEnv // ----------------- [ KHR_debug ] ----------------- -static void APIENTRY debugCallbackKHR(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar* message, GLvoid* userParam) { +static void EGLAPIENTRY debugCallbackKHR(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar* message, GLvoid* userParam) { JNIEnv *env = attachCurrentThread(); if ( env != NULL && !(*env)->ExceptionOccurred(env) && debugCallbackKHRJ != NULL ) { @@ -78,5 +78,5 @@ JNIEXPORT jlong JNICALL Java_org_lwjgl_opengl_CallbackUtil_getDebugCallbackKHR(J debugCallbackKHRJ = (*env)->GetMethodID(env, callbackClass, "handleMessage", "(IIIILjava/lang/String;)V"); } - return (jlong)(intptr_t)&debugCallbackKHRJ; + return (jlong)(intptr_t)&debugCallbackKHR; } \ No newline at end of file diff --git a/src/native/linux/opengles/org_lwjgl_opengl_Display.c b/src/native/linux/opengles/org_lwjgl_opengl_Display.c index 0132bb72..bae39410 100644 --- a/src/native/linux/opengles/org_lwjgl_opengl_Display.c +++ b/src/native/linux/opengles/org_lwjgl_opengl_Display.c @@ -185,8 +185,8 @@ static void setWindowTitle(Display *disp, Window window, jlong title, jint len) static void setClassHint(Display *disp, Window window, jlong wm_name, jlong wm_class) { XClassHint* hint = XAllocClassHint(); - hint->res_name = (const unsigned char *)(intptr_t)wm_name; - hint->res_class = (const unsigned char *)(intptr_t)wm_class; + hint->res_name = (char *)(intptr_t)wm_name; + hint->res_class = (char *)(intptr_t)wm_class; XSetClassHint(disp, window, hint);