egl_dri2: Only allocate config if we're going to keep it

Small optimization.
1 file changed