mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-06 22:53:23 +00:00
Fixed getting an 8-bit window surface on Apple platforms
The Metal renderer doesn't support XRGB texture formats, so we ended up matching SDL_PIXELFORMAT_INDEX8 for the window surface.
This commit is contained in:
parent
ff890d1733
commit
1c77304ee9
1 changed files with 1 additions and 0 deletions
|
|
@ -430,6 +430,7 @@ static bool SDL_CreateWindowTexture(SDL_VideoDevice *_this, SDL_Window *window,
|
|||
if (!SDL_ISPIXELFORMAT_FOURCC(texture_format) &&
|
||||
!SDL_ISPIXELFORMAT_10BIT(texture_format) &&
|
||||
!SDL_ISPIXELFORMAT_FLOAT(texture_format) &&
|
||||
!SDL_ISPIXELFORMAT_INDEXED(texture_format) &&
|
||||
transparent == SDL_ISPIXELFORMAT_ALPHA(texture_format)) {
|
||||
*format = texture_format;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue