egl: improve attribute checking for eglCreateContext
[mesa.git] / src / egl / main / eglconfig.c
index cf65c69b7b4333fb2cab1e36d8eaf88c043146cb..c445d9b0c926ce5d6000f26861976c5ca7b118ef 100644 (file)
@@ -83,7 +83,8 @@ _eglLinkConfig(_EGLConfig *conf)
    _EGLDisplay *dpy = conf->Display;
 
    /* sanity check */
-   assert(dpy && conf->ConfigID > 0);
+   assert(dpy);
+   assert(conf->ConfigID > 0);
 
    if (!dpy->Configs) {
       dpy->Configs = _eglCreateArray("Config", 16);