23 Oct
2025
23 Oct
'25
9:17 a.m.
Rémi Bernon (@rbernon) commented about dlls/opengl32/unix_wgl.c:
}
/* Check if a GL extension is supported */ -static BOOL check_extension_support( struct context *ctx, const char *extension, const char *available_extensions ) +static BOOL is_extension_supported( struct context *ctx, const char *extension ) +{ + return bsearch( &extension, ctx->exts, ctx->exts_count, sizeof(ctx->exts[0]), extensions_entry_cmp ) != NULL; What about using a local buffer so we can simply call `strcmp` in `extensions_entry_cmp`? Extension names are likely to be bounded in length.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/9263#note_119453