[PATCH] wined3d: Avoid crash in swapchain_gl_present() if context could not be acquired.

Henri Verbeet hverbeet at gmail.com
Wed Nov 13 09:35:06 CST 2019


On Wed, 13 Nov 2019 at 18:45, Paul Gofman <gofmanp at gmail.com> wrote:
> @@ -453,7 +453,12 @@ static void swapchain_gl_present(struct wined3d_swapchain *swapchain,
>      struct wined3d_context *context;
>      BOOL render_to_fbo;
>
> -    context = context_acquire(swapchain->device, swapchain->front_buffer, 0);
> +    if (!(context = context_acquire(swapchain->device, swapchain->front_buffer, 0)))
> +    {
> +        WARN("Could not get context, skipping present.\n");
> +        return;
> +    }
Can this legitimately happen?



More information about the wine-devel mailing list