summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSunghyun Kim <scholb.kim@samsung.com>2020-04-29 08:39:49 (GMT)
committerSunghyun Kim <scholb.kim@samsung.com>2020-04-29 08:39:49 (GMT)
commitf5a82096a2a1c97da2de10719eb201f2c9601325 (patch)
tree85b50cd3b597f300dc3ca215fbc72dc20ecdaef1
parentb4dc9472d06916f7dc8ae79ab526bfcdbaf8352f (diff)
downloadcairo-tizen.zip
cairo-tizen.tar.gz
cairo-tizen.tar.bz2
When check extension, cairo use strstr func. But there was a problem with how to use it. So i fix this bug. Change-Id: I4ff47d73b61e56ae84c465d19c579aff4dc55cf6
-rw-r--r--src/cairo-gl-info.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cairo-gl-info.c b/src/cairo-gl-info.c
index 5da1eac..53ba3d2 100644
--- a/src/cairo-gl-info.c
+++ b/src/cairo-gl-info.c
@@ -130,7 +130,7 @@ _cairo_gl_has_extension (cairo_gl_dispatch_t *dispatch, const char *ext)
for (i = 0; i < (int)max_num_extensions; i++) {
const char *extension = (const char *) dispatch->GetStringi (GL_EXTENSIONS, i);
- if (strstr (extension, ext) == 0)
+ if (strstr (extension, ext) != NULL)
return TRUE;
}
return FALSE;