Skip to content
This repository was archived by the owner on Aug 13, 2025. It is now read-only.

Commit 9e34448

Browse files
committed
more things that needed to be changed
1 parent aa01038 commit 9e34448

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

src/video/windows/SDL_windowsopengl.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,7 @@ extern void WIN_GL_UnloadLibrary(SDL_VideoDevice *_this);
108108
extern bool WIN_GL_UseEGL(SDL_VideoDevice *_this);
109109
extern bool WIN_GL_SetupWindow(SDL_VideoDevice *_this, SDL_Window *window);
110110
extern SDL_GLContext WIN_GL_CreateContext(SDL_VideoDevice *_this, SDL_Window *window);
111-
extern bool WIN_GL_MakeCurrent(SDL_VideoDevice *_this, SDL_Window *window,
112-
SDL_GLContext context);
111+
extern bool WIN_GL_MakeCurrent(SDL_VideoDevice *_this, SDL_Window *window, SDL_GLContext context);
113112
extern bool WIN_GL_SetSwapInterval(SDL_VideoDevice *_this, int interval);
114113
extern bool WIN_GL_GetSwapInterval(SDL_VideoDevice *_this, int *interval);
115114
extern bool WIN_GL_SwapWindow(SDL_VideoDevice *_this, SDL_Window *window);

src/video/winrt/SDL_winrtvideo.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ static SDL_VideoDevice *WINRT_CreateDevice(void)
159159
device->GL_SetSwapInterval = WIN_GL_SetSwapInterval;
160160
device->GL_GetSwapInterval = WIN_GL_GetSwapInterval;
161161
device->GL_SwapWindow = WIN_GL_SwapWindow;
162-
device->GL_DeleteContext = WIN_GL_DeleteContext;
162+
device->GL_DestroyContext = WIN_GL_DestroyContext;
163163
#endif
164164
device->free = WINRT_DeleteDevice;
165165

@@ -259,13 +259,13 @@ bool WINRT_VideoInit(SDL_VideoDevice *_this)
259259
}
260260

261261
#ifdef SDL_VIDEO_OPENGL_WGL
262-
Uint32 D3D11_DXGIFormatToSDLPixelFormat(DXGI_FORMAT dxgiFormat)
262+
SDL_PixelFormat D3D11_DXGIFormatToSDLPixelFormat(DXGI_FORMAT dxgiFormat)
263263
{
264264
switch (dxgiFormat) {
265265
case DXGI_FORMAT_B8G8R8A8_UNORM:
266266
return SDL_PIXELFORMAT_ARGB8888;
267267
case DXGI_FORMAT_B8G8R8X8_UNORM:
268-
return SDL_PIXELFORMAT_RGB888;
268+
return SDL_PIXELFORMAT_XRGB8888;
269269
default:
270270
return SDL_PIXELFORMAT_UNKNOWN;
271271
}

0 commit comments

Comments
 (0)