mirror of
https://github.com/yawut/SDL.git
synced 2026-08-06 10:43:33 -05:00
If a double-buffered surface was requested, and a plain hardware surface
was returned, we should create a shadow surface.
This commit is contained in:
parent
421f10e497
commit
454697a169
|
|
@ -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…
Reference in New Issue
Block a user