|
@@ -141,9 +141,6 @@ bool WIN_GL_LoadLibrary(SDL_VideoDevice *_this, const char *path)
|
|
SDL_LoadFunction(handle, "wglMakeCurrent");
|
|
SDL_LoadFunction(handle, "wglMakeCurrent");
|
|
_this->gl_data->wglShareLists = (BOOL (WINAPI *)(HGLRC, HGLRC))
|
|
_this->gl_data->wglShareLists = (BOOL (WINAPI *)(HGLRC, HGLRC))
|
|
SDL_LoadFunction(handle, "wglShareLists");
|
|
SDL_LoadFunction(handle, "wglShareLists");
|
|
- _this->gl_data->wglSwapLayerBuffers = (BOOL (WINAPI *)(HDC, UINT))
|
|
|
|
- SDL_LoadFunction(handle, "wglSwapLayerBuffers");
|
|
|
|
-
|
|
|
|
/* *INDENT-ON* */ // clang-format on
|
|
/* *INDENT-ON* */ // clang-format on
|
|
|
|
|
|
#if defined(SDL_PLATFORM_XBOXONE) || defined(SDL_PLATFORM_XBOXSERIES)
|
|
#if defined(SDL_PLATFORM_XBOXONE) || defined(SDL_PLATFORM_XBOXSERIES)
|
|
@@ -889,14 +886,8 @@ bool WIN_GL_SwapWindow(SDL_VideoDevice *_this, SDL_Window *window)
|
|
{
|
|
{
|
|
HDC hdc = window->internal->hdc;
|
|
HDC hdc = window->internal->hdc;
|
|
|
|
|
|
- if (_this->gl_data->wglSwapLayerBuffers) {
|
|
|
|
- if (!_this->gl_data->wglSwapLayerBuffers(hdc, WGL_SWAP_MAIN_PLANE)) {
|
|
|
|
- return WIN_SetError("wglSwapLayerBuffers()");
|
|
|
|
- }
|
|
|
|
- } else {
|
|
|
|
- if (!SwapBuffers(hdc)) {
|
|
|
|
- return WIN_SetError("SwapBuffers()");
|
|
|
|
- }
|
|
|
|
|
|
+ if (!SwapBuffers(hdc)) {
|
|
|
|
+ return WIN_SetError("SwapBuffers()");
|
|
}
|
|
}
|
|
return true;
|
|
return true;
|
|
}
|
|
}
|