winemac: Directly use win32u for GDI functions in opengl.c.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2022-05-20 14:16:30 +02:00 committed by Alexandre Julliard
parent 8534fe2d71
commit 948bd8e6c5
1 changed files with 2 additions and 2 deletions

View File

@ -3071,7 +3071,7 @@ static HDC macdrv_wglGetPbufferDCARB(struct wgl_pbuffer *pbuffer)
HDC hdc;
struct wgl_pbuffer *prev;
hdc = CreateDCA("DISPLAY", NULL, NULL, NULL);
hdc = NtGdiOpenDCW(NULL, NULL, NULL, 0, TRUE, NULL, NULL, NULL);
if (!hdc) return 0;
pthread_mutex_lock(&dc_pbuffers_mutex);
@ -3932,7 +3932,7 @@ static int macdrv_wglReleasePbufferDCARB(struct wgl_pbuffer *pbuffer, HDC hdc)
pthread_mutex_unlock(&dc_pbuffers_mutex);
return hdc && DeleteDC(hdc);
return hdc && NtGdiDeleteObjectApp(hdc);
}