mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-07 07:24:20 +00:00
Various linux fixes
This commit is contained in:
parent
24db98e43a
commit
a7ec7cda5b
5 changed files with 22 additions and 23 deletions
|
|
@ -47,7 +47,7 @@ extern XVisualInfo * getVisualInfo(void);
|
|||
extern Window win;
|
||||
extern Display * disp;
|
||||
|
||||
extern void handleMessages();
|
||||
extern void handleMessages(JNIEnv* env);
|
||||
|
||||
static void makeCurrent(void) {
|
||||
glXMakeCurrent(disp, win, context);
|
||||
|
|
@ -115,7 +115,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_BaseGL_nDestroy
|
|||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_BaseGL_swapBuffers(JNIEnv * env, jobject obj)
|
||||
{
|
||||
handleMessages();
|
||||
handleMessages(env);
|
||||
glXSwapBuffers(disp, win);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue