From: Alex Henrie alexhenrie24@gmail.com
--- dlls/opengl32/tests/opengl.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/dlls/opengl32/tests/opengl.c b/dlls/opengl32/tests/opengl.c index 42c2626a2c2..a5805b0633e 100644 --- a/dlls/opengl32/tests/opengl.c +++ b/dlls/opengl32/tests/opengl.c @@ -566,7 +566,6 @@ static void test_sharelists(HDC winhdc) res = wglShareLists(hglrc1, hglrc2); todo_wine ok(res, "Sharing display lists with a destination context which has been made current failed\n"); wglMakeCurrent(0, 0); - wglDeleteContext(hglrc2); }
/* Test 3: Share display lists with a context which already shares display lists with another context. @@ -576,8 +575,15 @@ static void test_sharelists(HDC winhdc) { res = wglShareLists(hglrc3, hglrc1); ok(res == FALSE, "Sharing of display lists passed for a context which already shared lists before\n"); + res = wglShareLists(hglrc3, hglrc2); + ok(res == FALSE, "Sharing of display lists passed for a context which already shared lists before\n"); + res = wglShareLists(hglrc1, hglrc3); + todo_wine ok(res == FALSE, "Sharing of display lists passed for a context which already shared lists before\n"); + res = wglShareLists(hglrc2, hglrc3); + ok(res == FALSE, "Sharing of display lists passed for a context which already shared lists before\n"); wglDeleteContext(hglrc3); } + wglDeleteContext(hglrc2);
/* Test 4: Share display lists with a 'source' context which has been made current */ hglrc2 = wglCreateContext(winhdc);