fix segfault in Fake_glXCreatePBuffer(), bug 4235
This commit is contained in:
@@ -2099,7 +2099,10 @@ Fake_glXCreatePbuffer( Display *dpy, GLXFBConfig config,
|
|||||||
/* A GLXPbuffer handle must be an X Drawable because that's what
|
/* A GLXPbuffer handle must be an X Drawable because that's what
|
||||||
* glXMakeCurrent takes.
|
* glXMakeCurrent takes.
|
||||||
*/
|
*/
|
||||||
return (GLXPbuffer) xmbuf->frontxrb->pixmap;
|
if (xmbuf)
|
||||||
|
return (GLXPbuffer) xmbuf->frontxrb->pixmap;
|
||||||
|
else
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user