Skip to content
Permalink
Browse files

If a double-buffered surface was requested, and a plain hardware surface

was returned, we should create a shadow surface.
  • Loading branch information
slouken committed Jan 26, 2003
1 parent 9e95d38 commit 39d062dfd8a9c14badb37f64d1d4efa14098f690
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/video/SDL_video.c
@@ -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 ) {

0 comments on commit 39d062d

Please sign in to comment.