mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-25 14:09:10 +00:00
renderer: initialize the surface colorspace correctly
Fixes https://github.com/libsdl-org/SDL/issues/12027
This commit is contained in:
parent
c975f77b0f
commit
c698c61f03
1 changed files with 1 additions and 1 deletions
|
@ -1634,7 +1634,7 @@ SDL_Texture *SDL_CreateTextureFromSurface(SDL_Renderer *renderer, SDL_Surface *s
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
texture_colorspace = SDL_GetSurfaceColorspace(surface);
|
surface_colorspace = SDL_GetSurfaceColorspace(surface);
|
||||||
|
|
||||||
// Try to have the best pixel format for the texture
|
// Try to have the best pixel format for the texture
|
||||||
// No alpha, but a colorkey => promote to alpha
|
// No alpha, but a colorkey => promote to alpha
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue