i965: Add support for MRT to the new FS backend.
[mesa.git] / src / egl / main / eglconfig.h
index ca63c40d3d78b26468638bc58b61eaa4fd4706f8..0ad58cf473d4d9d0a0881bdc735db17904e7aad1 100644 (file)
@@ -117,7 +117,7 @@ static INLINE _EGLConfig *
 _eglLookupConfig(EGLConfig config, _EGLDisplay *dpy)
 {
    _EGLConfig *conf = (_EGLConfig *) config;
-   if (!_eglCheckConfigHandle(config, dpy))
+   if (!dpy || !_eglCheckConfigHandle(config, dpy))
       conf = NULL;
    return conf;
 }