mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 07:18:17 +02:00
check for null dpy in Fake_glXGetConfig()
This commit is contained in:
parent
c3fb2558f0
commit
a9a1c3f20f
1 changed files with 3 additions and 0 deletions
|
|
@ -1727,6 +1727,9 @@ Fake_glXGetConfig( Display *dpy, XVisualInfo *visinfo,
|
|||
{
|
||||
XMesaVisual xmvis;
|
||||
|
||||
if (!dpy || !visInfo)
|
||||
return GLX_BAD_ATTRIBUTE;
|
||||
|
||||
xmvis = find_glx_visual( dpy, visinfo );
|
||||
if (!xmvis) {
|
||||
/* this visual wasn't obtained with glXChooseVisual */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue