From f6866fe6cefbefe6f1582eb719314496465e27b1 Mon Sep 17 00:00:00 2001 From: LibretroAdmin Date: Fri, 28 Oct 2022 22:33:28 +0200 Subject: [PATCH] Buildfix for Linux --- gfx/drivers_context/x_ctx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gfx/drivers_context/x_ctx.c b/gfx/drivers_context/x_ctx.c index 722817d721..e763429f2e 100644 --- a/gfx/drivers_context/x_ctx.c +++ b/gfx/drivers_context/x_ctx.c @@ -180,7 +180,7 @@ static void gfx_ctx_x_destroy_resources(gfx_ctx_x_data_t *x) glXMakeContextCurrent(g_x11_dpy, None, None, NULL); video_st_flags = video_driver_get_st_flags(); - if (!(video_st->flags & VIDEO_FLAG_CACHE_CONTEXT)) + if (!(video_st_flags & VIDEO_FLAG_CACHE_CONTEXT)) { if (x->hw_ctx) glXDestroyContext(g_x11_dpy, x->hw_ctx);