diff --git a/src/gallium/frontends/dri/dri2.c b/src/gallium/frontends/dri/dri2.c index cb7d2478fe5..128b8f15a75 100644 --- a/src/gallium/frontends/dri/dri2.c +++ b/src/gallium/frontends/dri/dri2.c @@ -908,7 +908,7 @@ dri2_create_image_from_winsys(__DRIscreen *_screen, */ const struct driOptionCache *optionCache = &screen->dev->option_cache; if (!driQueryOptionb(optionCache, "disable_protected_content_check") && - (tex->bind & PIPE_BIND_PROTECTED) != is_protected_content) { + (bool)(tex->bind & PIPE_BIND_PROTECTED) != is_protected_content) { pipe_resource_reference(&img->texture, NULL); pipe_resource_reference(&tex, NULL); FREE(img);