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);