Browse Source

fix segfault in Fake_glXCreatePBuffer(), bug 4235

tags/mesa_20060201
Brian Paul 20 years ago
parent
commit
dd1a9f75dc
1 changed files with 4 additions and 1 deletions
  1. 4
    1
      src/mesa/drivers/x11/fakeglx.c

+ 4
- 1
src/mesa/drivers/x11/fakeglx.c View File

@@ -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…
Cancel
Save