egl/gbm: Fix compiler warning about visual matching.
authorEric Anholt <eric@anholt.net>
Sat, 10 Feb 2018 16:32:57 +0000 (16:32 +0000)
committerDaniel Stone <daniels@collabora.com>
Mon, 12 Feb 2018 09:16:44 +0000 (09:16 +0000)
commit0b97eb02b0e60cce7f74346e6c647286097b0542
treee07817a629d8c8c1b3fea6ec922e7f8d022fc122
parent831fb29252859c8aaf2bc1c2573a83f30d664204
egl/gbm: Fix compiler warning about visual matching.

The compiler doesn't know that num_visuals > 0.

Fixes: 37a8d907cc16 ("egl/gbm: Ensure EGLConfigs match GBM surface format")
Reviewed-by: Daniel Stone <daniels@collabora.com>
src/egl/drivers/dri2/platform_drm.c