Commit d79384a2 authored by Sam Lantinga's avatar Sam Lantinga

*** empty log message ***

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40265
parent fbed922c
......@@ -711,6 +711,14 @@ SDL_Surface * SDL_ConvertSurface (SDL_Surface *surface,
}
}
/* Only create hw surfaces with alpha channel if hw alpha blits
are supported */
if(format->Amask != 0 && (flags & SDL_HWSURFACE)) {
const SDL_VideoInfo *vi = SDL_GetVideoInfo();
if(!vi || !vi->blit_hw_A)
flags &= ~SDL_HWSURFACE;
}
/* Create a new surface with the desired format */
convert = SDL_CreateRGBSurface(flags,
surface->w, surface->h, format->BitsPerPixel,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment