comparison src/SDL_compat.c @ 2872:762f0663c36a

Use the desktop format instead of an arbitrary one.
author Sam Lantinga <slouken@libsdl.org>
date Tue, 16 Dec 2008 17:40:30 +0000
parents 929e7dd10031
children 9dde605c7540
comparison
equal deleted inserted replaced
2871:cf09447f3d3c 2872:762f0663c36a
618 SDL_CreateTexture(desired_format, SDL_TEXTUREACCESS_STREAMING, width, 618 SDL_CreateTexture(desired_format, SDL_TEXTUREACCESS_STREAMING, width,
619 height); 619 height);
620 620
621 if (!SDL_VideoTexture) { 621 if (!SDL_VideoTexture) {
622 SDL_VideoTexture = 622 SDL_VideoTexture =
623 SDL_CreateTexture(SDL_PIXELFORMAT_ARGB8888, 623 SDL_CreateTexture(desktop_format,
624 SDL_TEXTUREACCESS_STREAMING, width, height); 624 SDL_TEXTUREACCESS_STREAMING, width, height);
625 } 625 }
626 if (!SDL_VideoTexture) { 626 if (!SDL_VideoTexture) {
627 return NULL; 627 return NULL;
628 } 628 }