equal
deleted
inserted
replaced
597 |
597 |
598 {$IFDEF DEBUGFILE} |
598 {$IFDEF DEBUGFILE} |
599 AddFileLog('Prepare to change video parameters...'); |
599 AddFileLog('Prepare to change video parameters...'); |
600 {$ENDIF} |
600 {$ENDIF} |
601 |
601 |
|
602 {$IFNDEF IPHONEOS} |
602 SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1); |
603 SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1); |
603 {$IFDEF IPHONEOS} |
604 {$ELSE} |
604 // remove these if they cause incompatibility |
605 // remove these if they cause incompatibility |
605 SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 0); |
606 SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 0); |
606 SDL_GL_SetAttribute(SDL_GL_RETAINED_BACKING, 1); |
607 SDL_GL_SetAttribute(SDL_GL_RETAINED_BACKING, 1); |
607 SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 0); |
608 SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 0); |
608 {$ELSE} |
609 {$ENDIF} |
|
610 |
|
611 {$IFNDEF SDL13} |
609 // this attribute is default in 1.3 |
612 // this attribute is default in 1.3 |
610 SDL_GL_SetAttribute(SDL_GL_SWAP_CONTROL, 1); |
613 SDL_GL_SetAttribute(SDL_GL_SWAP_CONTROL, 1); |
611 {$ENDIF} |
614 {$ENDIF} |
612 |
615 |
613 flags:= SDL_OPENGL;// or SDL_RESIZABLE; |
616 flags:= SDL_OPENGL;// or SDL_RESIZABLE; |