Linux: Fix crash when LinuxCanvasImplementation.getScreenFromDevice fails

This commit is contained in:
Elias Naur 2006-09-28 21:53:18 +00:00
parent 9a684b77ab
commit 55f67e68cb
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_LinuxAWTGLCanvasPeerInfo_nInitHandl
int num_infos;
template.visualid = dsi_x11->visualID;
template.depth = dsi_x11->depth;
XVisualInfo *vis_info = XGetVisualInfo(peer_info->display, VisualIDMask | VisualDepthMask, &template, &num_infos);
XVisualInfo *vis_info = XGetVisualInfo(dsi_x11->display, VisualIDMask | VisualDepthMask, &template, &num_infos);
if (vis_info == NULL) {
throwException(env, "Could not determine screen");
return;