If a double-buffered surface was requested, and a plain hardware surface
was returned, we should create a shadow surface. --HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40581
This commit is contained in:
parent
a720fc3e74
commit
dc74b15514
1 changed files with 4 additions and 1 deletions
|
@ -836,7 +836,10 @@ do { \
|
|||
as soon as they are performed, so we need to buffer them
|
||||
*/
|
||||
( ((flags&SDL_HWSURFACE) == SDL_SWSURFACE) &&
|
||||
(SDL_VideoSurface->flags&SDL_HWSURFACE))
|
||||
(SDL_VideoSurface->flags&SDL_HWSURFACE)) ||
|
||||
( (flags&SDL_DOUBLEBUF) &&
|
||||
(SDL_VideoSurface->flags&SDL_HWSURFACE) &&
|
||||
!(SDL_VideoSurface->flags&SDL_DOUBLEBUF))
|
||||
) ) {
|
||||
SDL_CreateShadowSurface(bpp);
|
||||
if ( SDL_ShadowSurface == NULL ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue