mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-17 13:30:20 +01:00
fix segfault in Fake_glXCreatePBuffer(), bug 4235
This commit is contained in:
parent
7e6553c1aa
commit
dd1a9f75dc
1 changed files with 4 additions and 1 deletions
|
|
@ -2099,7 +2099,10 @@ Fake_glXCreatePbuffer( Display *dpy, GLXFBConfig config,
|
|||
/* A GLXPbuffer handle must be an X Drawable because that's what
|
||||
* glXMakeCurrent takes.
|
||||
*/
|
||||
return (GLXPbuffer) xmbuf->frontxrb->pixmap;
|
||||
if (xmbuf)
|
||||
return (GLXPbuffer) xmbuf->frontxrb->pixmap;
|
||||
else
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue