From: Henri Verbeet Subject: Re: [PATCH] wined3d: Avoid crash in swapchain_gl_present() if context could not be acquired. Message-Id: Date: Wed, 13 Nov 2019 19:05:06 +0330 In-Reply-To: <20191113151515.1455279-1-gofmanp@gmail.com> References: <20191113151515.1455279-1-gofmanp@gmail.com> On Wed, 13 Nov 2019 at 18:45, Paul Gofman 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?