This repository was archived by the owner on Aug 13, 2025. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -108,8 +108,7 @@ extern void WIN_GL_UnloadLibrary(SDL_VideoDevice *_this);
108108extern bool WIN_GL_UseEGL (SDL_VideoDevice * _this );
109109extern bool WIN_GL_SetupWindow (SDL_VideoDevice * _this , SDL_Window * window );
110110extern 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 );
113112extern bool WIN_GL_SetSwapInterval (SDL_VideoDevice * _this , int interval );
114113extern bool WIN_GL_GetSwapInterval (SDL_VideoDevice * _this , int * interval );
115114extern bool WIN_GL_SwapWindow (SDL_VideoDevice * _this , SDL_Window * window );
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments