aboutsummaryrefslogtreecommitdiffstats
path: root/src/egl
diff options
context:
space:
mode:
authorChad Versace <[email protected]>2016-10-14 15:05:19 -0700
committerChad Versace <[email protected]>2016-10-16 09:03:31 -0700
commit07422bf32b847493a1362e20eb0883c0e48fea84 (patch)
treef2a7bc98fc5c09e6d52a872ac220b2d244a3af39 /src/egl
parentd19b014b774450741f02935fe84208f4889d3800 (diff)
egl/surfaceless: Fix comparison between pointer and integer
Fixes GCC warning: drivers/dri2/platform_surfaceless.c:196:18: warning: comparison between pointer and integer Fixes: 4b8a55809eb ("egl/surfaceless: tweak surfaceless_add_configs_for_visuals()") Reviewed-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/egl')
-rw-r--r--src/egl/drivers/dri2/platform_surfaceless.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/egl/drivers/dri2/platform_surfaceless.c b/src/egl/drivers/dri2/platform_surfaceless.c
index f891d91796d..fcf7d697019 100644
--- a/src/egl/drivers/dri2/platform_surfaceless.c
+++ b/src/egl/drivers/dri2/platform_surfaceless.c
@@ -193,7 +193,7 @@ surfaceless_add_configs_for_visuals(_EGLDriver *drv, _EGLDisplay *dpy)
unsigned int count, i, j;
count = 0;
- for (i = 0; i < dri2_dpy->driver_configs[i]; i++) {
+ for (i = 0; dri2_dpy->driver_configs[i] != NULL; i++) {
for (j = 0; j < ARRAY_SIZE(visuals); j++) {
struct dri2_egl_config *dri2_conf;