Use the desktop format instead of an arbitrary one.

This commit is contained in:
Sam Lantinga
2008-12-16 17:40:30 +00:00
parent 893e52b5a0
commit 9ad4a87532

View File

@@ -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) {