opengl32/tests: Make context current before calling wglCopyContext().
commit7937596f8fb2a7aef3b61e93ee0c1e3f0062e80c
authorZhiyi Zhang <zzhang@codeweavers.com>
Thu, 2 Feb 2023 02:34:17 +0000 (2 10:34 +0800)
committerAlexandre Julliard <julliard@winehq.org>
Thu, 2 Feb 2023 17:08:39 +0000 (2 18:08 +0100)
treeb8eb13eb2f008b892f64224fcaa627afc21f6d02
parent2fbe1f3508cb71d994ad4055bccb2de6fe051ebd
opengl32/tests: Make context current before calling wglCopyContext().

Otherwise, wglCopyContext() crashes on Windows with a NVIDIA GPU and fails on Windows with a AMD GPU.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51311
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54103
dlls/opengl32/tests/opengl.c