summaryrefslogtreecommitdiff
path: root/src/cairo-gl-info.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cairo-gl-info.c')
-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;