mirror of
https://github.com/yawut/SDL.git
synced 2026-08-24 09:45:09 -05:00
Use the desktop format instead of an arbitrary one.
This commit is contained in:
@@ -620,7 +620,7 @@ SDL_SetVideoMode(int width, int height, int bpp, Uint32 flags)
|
||||
|
||||
if (!SDL_VideoTexture) {
|
||||
SDL_VideoTexture =
|
||||
SDL_CreateTexture(SDL_PIXELFORMAT_ARGB8888,
|
||||
SDL_CreateTexture(desktop_format,
|
||||
SDL_TEXTUREACCESS_STREAMING, width, height);
|
||||
}
|
||||
if (!SDL_VideoTexture) {
|
||||
|
||||
Reference in New Issue
Block a user