Module: wine Branch: master Commit: d88c403e548cfe2171ac22603197ffbc0e70b4c2 URL: https://source.winehq.org/git/wine.git/?a=commit;h=d88c403e548cfe2171ac22603...
Author: Henri Verbeet hverbeet@codeweavers.com Date: Mon Jun 3 18:28:23 2019 +0430
wined3d: Properly check whether a context was created in swapchain_init().
This fixes commit db201072655946662c041a66ee434c30c245e5b0, but the underlying issue was of course present before that commit.
Signed-off-by: Henri Verbeet hverbeet@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/wined3d/swapchain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/wined3d/swapchain.c b/dlls/wined3d/swapchain.c index 4cefd80..481b3b7 100644 --- a/dlls/wined3d/swapchain.c +++ b/dlls/wined3d/swapchain.c @@ -904,7 +904,7 @@ static HRESULT swapchain_init(struct wined3d_swapchain *swapchain, struct wined3 wined3d_cs_init_object(device->cs, wined3d_swapchain_cs_init, swapchain); wined3d_cs_finish(device->cs, WINED3D_CS_QUEUE_DEFAULT);
- if (!swapchain->context[0]) + if (!swapchain->num_contexts) { hr = WINED3DERR_NOTAVAILABLE; goto err;