From c542aef60042e11c716a41818238b80bfee52e0e Mon Sep 17 00:00:00 2001 From: Caleb Cornett Date: Tue, 20 Dec 2022 23:22:55 -0500 Subject: [PATCH] Fix GDK OpenGL build error --- src/video/windows/SDL_windowsopengl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/video/windows/SDL_windowsopengl.c b/src/video/windows/SDL_windowsopengl.c index 5dd046d50..c35a48a85 100644 --- a/src/video/windows/SDL_windowsopengl.c +++ b/src/video/windows/SDL_windowsopengl.c @@ -276,7 +276,7 @@ static void WIN_GL_SetupPixelFormat(_THIS, PIXELFORMATDESCRIPTOR *pfd) /* Choose the closest pixel format that meets or exceeds the target. FIXME: Should we weight any particular attribute over any other? */ -static int WIN_GL_ChoosePixelFormat(HDC hdc, PIXELFORMATDESCRIPTOR *target) +static int WIN_GL_ChoosePixelFormat(_THIS, HDC hdc, PIXELFORMATDESCRIPTOR *target) { PIXELFORMATDESCRIPTOR pfd; int count, index, best = 0; @@ -668,7 +668,7 @@ static int WIN_GL_SetupWindowInternal(_THIS, SDL_Window *window) *iAccelAttr = WGL_FULL_ACCELERATION_ARB; /* if we try again. */ } if (!pixel_format) { - pixel_format = WIN_GL_ChoosePixelFormat(hdc, &pfd); + pixel_format = WIN_GL_ChoosePixelFormat(_this, hdc, &pfd); } if (!pixel_format) { return SDL_SetError("No matching GL pixel format available");