Merge branch 'mesa_7_6_branch'
[mesa.git] / src / gallium / winsys / drm / nouveau / drm / nouveau_drm_api.c
index 091cbbcfed137cc301eb0ac9081ca92de7526288..117ca6059bbfcaadfee03f611c68c1d9dca66736 100644 (file)
@@ -112,7 +112,7 @@ nouveau_drm_create_screen(struct drm_api *api, int fd,
                return NULL;
        }
 
-       if (arg->mode == DRM_CREATE_DRI1) {
+       if (arg && arg->mode == DRM_CREATE_DRI1) {
                struct nouveau_dri *nvdri = dri1->ddx_info;
                enum pipe_format format;