Linux: Added missing NULL check
This commit is contained in:
parent
c4ee90ff6e
commit
c80ace3704
|
@ -75,10 +75,12 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_LinuxPbufferPeerInfo_nInitHandle
|
|||
|
||||
X11PeerInfo *peer_info = (X11PeerInfo *)(*env)->GetDirectBufferAddress(env, peer_info_handle);
|
||||
GLXFBConfig *config = getFBConfigFromPeerInfo(env, peer_info);
|
||||
if (config != NULL) {
|
||||
GLXPbuffer buffer = _glXCreatePbuffer(peer_info->display, *config, buffer_attribs);
|
||||
XFree(config);
|
||||
peer_info->drawable = buffer;
|
||||
}
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_LinuxPbufferPeerInfo_nDestroy
|
||||
(JNIEnv *env, jclass clazz, jobject peer_info_handle) {
|
||||
|
|
Loading…
Reference in New Issue